Class PackageTreeContentProvider.PackageStructureNode

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable
    Enclosing class:
    PackageTreeContentProvider

    public static class PackageTreeContentProvider.PackageStructureNode
    extends Object
    implements org.eclipse.core.runtime.IAdaptable
    Package tree folder node. May be adapted to node parent.
    • Method Detail

      • of

        public static PackageTreeContentProvider.PackageStructureNode of​(Object nodeParent,
                                                                         org.eclipse.emf.ecore.EReference nodeReference)
        Creates a new instance with the given node parent and type.
        Parameters:
        nodeParent - the node parent. Cannot be null.
        nodeReference - the node reference. Cannot be null.
        Returns:
        a newly created node. Never null.
      • getAdapter

        public <T> T getAdapter​(Class<T> adapter)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable
      • getImage

        public org.eclipse.swt.graphics.Image getImage()
        Returns the node image.
        Returns:
        the node image. Cannot be null.
      • getParent

        public Object getParent()
        Returns the node parent.
        Returns:
        the node parent. Cannot be null.
      • getReference

        public org.eclipse.emf.ecore.EReference getReference()
        Returns the node reference.
        Returns:
        the node reference. Cannot be null.
      • getText

        public String getText()
        Returns the node text.
        Returns:
        the node text. Cannot be null.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object