Class DefaultHierarchyNode

    • Constructor Detail

      • DefaultHierarchyNode

        public DefaultHierarchyNode()
    • Method Detail

      • getNavigationElement

        public java.lang.Object getNavigationElement()
        Description copied from interface: INavigatable

        Returns an instance containing enough information to identify an editor that should be opened and a region that should be revealed.

        Typical navigation elements are resource, object and reference descriptions.

        Avoid usage of resource sets, resources and eobjects as navigation elements, since it can lead to memory leaks.

        Specified by:
        getNavigationElement in interface INavigatable
      • isRecursive

        public boolean isRecursive()
        Specified by:
        isRecursive in interface IHierarchyNode
        Returns:
        whether there is a parent (can be transitive) containing the same element as the node
      • internalIsRecursive

        protected boolean internalIsRecursive()
      • mayHaveChildren

        public boolean mayHaveChildren()
        Specified by:
        mayHaveChildren in interface IHierarchyNode
        Returns:
        whether the node may have children; e.g. a recursive node cannot have children
      • setMayHaveChildren

        public void setMayHaveChildren​(boolean mayHaveChildren)
      • getElement

        public org.eclipse.xtext.resource.IEObjectDescription getElement()
        Specified by:
        getElement in interface IHierarchyNode
        Returns:
        an associated element that is used to build child nodes
      • setElement

        public void setElement​(org.eclipse.xtext.resource.IEObjectDescription element)