Class XdtoUiUtil


  • public class XdtoUiUtil
    extends Object
    Xdto Ui util.
    • Constructor Detail

      • XdtoUiUtil

        public XdtoUiUtil()
    • Method Detail

      • getPresentationName

        public static String getPresentationName​(QName qname)
        Gets UI presentation of QName: "localName (nsUri)"
        Parameters:
        qname - actual QName for getting UI presentation, cannot be null
        Returns:
        UI presentation of QName, never null
      • getPackageTreeNodeChildren

        public static List<?> getPackageTreeNodeChildren​(Object parentNode)
        Returns package tree node children.
        Parameters:
        parentNode - the package tree parent node, cannot be null
        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 be null
        Returns:
        parent node or null
      • getPackageTreeElements

        public static List<?> getPackageTreeElements​(Object inputElement)
        Returns package tree elenemts.
        Parameters:
        inputElement - the package or list packages, cannot be null
        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 be null
        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)
        Creates IModel instance by the given arguments.
        Parameters:
        object - the EObject instance, cannot be null
        feature - the EStructuralFeature instance, cannot be null
        Returns:
        a newly created model.