Class VirtualFolderDescriptor


  • public class VirtualFolderDescriptor
    extends Object
    A descriptor of a virtual folder (a partial model node that does not directly correspond to specific model elements).
    • Constructor Detail

      • VirtualFolderDescriptor

        public VirtualFolderDescriptor​(String label,
                                       org.eclipse.emf.ecore.EReference reference)
        Constructs a descriptor.
        Parameters:
        label - the label of the descriptor, cannot be null
        reference - the descriptor reference, may be null
      • VirtualFolderDescriptor

        public VirtualFolderDescriptor​(org.eclipse.emf.ecore.EReference reference)
        Constructs a descriptor.
        Parameters:
        reference - the descriptor reference, cannot be null
    • Method Detail

      • createNode

        public VirtualFolderPartialModelNode createNode()
        A factory method for creation of partial model nodes based on this descriptor.
        Returns:
        a new virtual folder node
      • getChildFeatures

        public List<org.eclipse.emf.ecore.EReference> getChildFeatures()
        Returns list of child features the virtual folder may contain. Override in subclasses if need.
        Returns:
        the list of child features, may be empty, never null
      • getImage

        public org.eclipse.swt.graphics.Image getImage()
        Returns the image of the virtual folder.
        Returns:
        the image
      • getLabel

        public String getLabel()
        Returns the label of the descriptor.
        Returns:
        the label
      • getReference

        public org.eclipse.emf.ecore.EReference getReference()
        Returns the EReference corresponding to this descriptor.
        Returns:
        the EReference, may be null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object