Class XdtoUiUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.xdto.ui.aef.models.XdtoUiUtil
-
public class XdtoUiUtil extends Object
Xdto Ui util.
-
-
Constructor Summary
Constructors Constructor Description XdtoUiUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IModel
createModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
CreatesIModel
instance by the given arguments.static List<?>
getPackageTreeElements(Object inputElement)
Returns package tree elenemts.static List<?>
getPackageTreeNodeChildren(Object parentNode)
Returns package tree node children.static Object
getParent(Object treeNode)
Returns package tree node parent.static String
getPresentationName(QName qname)
Gets UI presentation ofQName
: "localName (nsUri)"static boolean
isNonBmObject(org.eclipse.emf.ecore.EObject eObject)
Checks that selected e-object is non bm-object, because it contained in the plain e-object.
-
-
-
Method Detail
-
getPresentationName
public static String getPresentationName(QName qname)
Gets UI presentation ofQName
: "localName (nsUri)"
-
getPackageTreeNodeChildren
public static List<?> getPackageTreeNodeChildren(Object parentNode)
Returns package tree node children.- Parameters:
parentNode
- the package tree parent node, cannot benull
- Returns:
- child list or empty list, never
null
-
getParent
public static Object getParent(Object treeNode)
Returns package tree node parent.- Parameters:
treeNode
- the package tree node, cannot benull
- Returns:
- parent node or
null
-
getPackageTreeElements
public static List<?> getPackageTreeElements(Object inputElement)
Returns package tree elenemts.- Parameters:
inputElement
- the package or list packages, cannot benull
- Returns:
- the elements list packages or empty list, never
null
-
isNonBmObject
public static boolean isNonBmObject(org.eclipse.emf.ecore.EObject eObject)
Checks that selected e-object is non bm-object, because it contained in the plain e-object.- Parameters:
eObject
- the checked e-object, cannot benull
- Returns:
true
if e-object contained in the plain e-object
-
createModel
public static IModel createModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
CreatesIModel
instance by the given arguments.- Parameters:
object
- theEObject
instance, cannot benull
feature
- theEStructuralFeature
instance, cannot benull
- Returns:
- a newly created model.
-
-