Class TypedNotifier
- java.lang.Object
-
- org.eclipse.emf.compare.rcp.ui.contentmergeviewer.accessor.legacy.impl.AbstractTypedElementAdapter
-
- org.eclipse.emf.compare.rcp.ui.internal.contentmergeviewer.accessor.legacy.impl.TypedNotifier
-
- All Implemented Interfaces:
ITypedElement
public class TypedNotifier extends AbstractTypedElementAdapter
A specific implementation ofAbstractTypedElementAdapterfor notifiers.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringNODE_TYPE_EMF_COMPARISONEMF Comparison type.static StringNODE_TYPE_EMF_EOBJECTEMF EObject type.static StringNODE_TYPE_EMF_RESOURCEEMF Resource type.static StringNODE_TYPE_EMF_RESOURCESETEMF ResourceSet type.-
Fields inherited from interface org.eclipse.emf.compare.rcp.ui.contentmergeviewer.accessor.legacy.ITypedElement
FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE
-
-
Constructor Summary
Constructors Constructor Description TypedNotifier(AdapterFactory adapterFactory, Notifier notifier)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.ImagegetImage()Returns an image for this object.StringgetName()Returns the name of this object.StringgetType()Returns the type of this object.-
Methods inherited from class org.eclipse.emf.compare.rcp.ui.contentmergeviewer.accessor.legacy.impl.AbstractTypedElementAdapter
getAdapterFactory, getItemDelegator, getRootAdapterFactory
-
-
-
-
Field Detail
-
NODE_TYPE_EMF_RESOURCESET
public static final String NODE_TYPE_EMF_RESOURCESET
EMF ResourceSet type.- See Also:
- Constant Field Values
-
NODE_TYPE_EMF_RESOURCE
public static final String NODE_TYPE_EMF_RESOURCE
EMF Resource type.- See Also:
- Constant Field Values
-
NODE_TYPE_EMF_EOBJECT
public static final String NODE_TYPE_EMF_EOBJECT
EMF EObject type.- See Also:
- Constant Field Values
-
NODE_TYPE_EMF_COMPARISON
public static final String NODE_TYPE_EMF_COMPARISON
EMF Comparison type.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TypedNotifier
public TypedNotifier(AdapterFactory adapterFactory, Notifier notifier)
Default constructor.- Parameters:
adapterFactory- the adapter factory to use to retrieve item.notifier- the notifier to use to retrieve the type.
-
-
Method Detail
-
getName
public String getName()
Returns the name of this object. The name is used when displaying this object in the UI.- Returns:
- the name of this object
- See Also:
ITypedElement.getName()
-
getImage
public org.eclipse.swt.graphics.Image getImage()
Returns an image for this object. This image is used when displaying this object in the UI.- Returns:
- the image of this object or
nullif this type of input has no image - See Also:
ITypedElement.getImage()
-
getType
public String getType()
Returns the type of this object. For objects with a file name this is typically the file extension. For folders its the constantFOLDER_TYPE. The type is used for determining a suitable viewer for this object.- Returns:
- the type of this object
- See Also:
ITypedElement.getType()
-
-