Class VirtualFolderDescriptor
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.ui.partialmodel.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 Summary
Constructors Constructor Description VirtualFolderDescriptor(String label, org.eclipse.emf.ecore.EReference reference)
Constructs a descriptor.VirtualFolderDescriptor(org.eclipse.emf.ecore.EReference reference)
Constructs a descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VirtualFolderPartialModelNode
createNode()
A factory method for creation of partial model nodes based on this descriptor.boolean
equals(Object obj)
List<org.eclipse.emf.ecore.EReference>
getChildFeatures()
Returns list of child features the virtual folder may contain.org.eclipse.swt.graphics.Image
getImage()
Returns the image of the virtual folder.String
getLabel()
Returns the label of the descriptor.org.eclipse.emf.ecore.EReference
getReference()
Returns the EReference corresponding to this descriptor.int
hashCode()
-
-
-
Constructor Detail
-
VirtualFolderDescriptor
public VirtualFolderDescriptor(String label, org.eclipse.emf.ecore.EReference reference)
Constructs a descriptor.- Parameters:
label
- the label of the descriptor, cannot benull
reference
- the descriptor reference, may benull
-
VirtualFolderDescriptor
public VirtualFolderDescriptor(org.eclipse.emf.ecore.EReference reference)
Constructs a descriptor.- Parameters:
reference
- the descriptor reference, cannot benull
-
-
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
-
-