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
A specific implementation of
AbstractTypedElementAdapter
for notifiers.- Since:
- 4.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
EMF Comparison type.static final String
EMF EObject type.static final String
EMF Resource type.static final String
EMF ResourceSet type.Fields inherited from interface org.eclipse.emf.compare.rcp.ui.contentmergeviewer.accessor.legacy.ITypedElement
FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE
-
Constructor Summary
ConstructorDescriptionTypedNotifier
(AdapterFactory adapterFactory, Notifier notifier) Default constructor. -
Method Summary
Methods inherited from class org.eclipse.emf.compare.rcp.ui.contentmergeviewer.accessor.legacy.impl.AbstractTypedElementAdapter
getAdapterFactory, getItemDelegator, getRootAdapterFactory
-
Field Details
-
NODE_TYPE_EMF_RESOURCESET
EMF ResourceSet type.- See Also:
-
NODE_TYPE_EMF_RESOURCE
EMF Resource type.- See Also:
-
NODE_TYPE_EMF_EOBJECT
EMF EObject type.- See Also:
-
NODE_TYPE_EMF_COMPARISON
EMF Comparison type.- See Also:
-
-
Constructor Details
-
TypedNotifier
Default constructor.- Parameters:
adapterFactory
- the adapter factory to use to retrieve item.notifier
- the notifier to use to retrieve the type.
-
-
Method Details
-
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:
-
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
null
if this type of input has no image - See Also:
-
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:
-