Class EMFProfileApplicationDecoratorImpl
- java.lang.Object
-
- org.modelversioning.emfprofile.application.decorator.reflective.EMFProfileApplicationDecoratorImpl
-
- All Implemented Interfaces:
EventListener
,ISelectionListener
,EMFProfileApplicationDecorator
public class EMFProfileApplicationDecoratorImpl extends Object implements EMFProfileApplicationDecorator, ISelectionListener
-
-
Constructor Summary
Constructors Constructor Description EMFProfileApplicationDecoratorImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
canDecorateEditorParts()
returns editor part extension ids which this decorator supports.void
decorate(EObject eObject, List<Image> images, List<String> toolTipTexts)
Decorating graphical representation of element holdingEObject
.IWorkbenchPage
getActivePage()
static PluginExtensionOperationsListener
getPluginExtensionOperationsListener()
void
selectionChanged(IWorkbenchPart part, ISelection selection)
void
setPluginExtensionOperationsListener(PluginExtensionOperationsListener listener)
Sets the listener for extension plug-in which can execute operations on extended plug-in.
-
-
-
Method Detail
-
getActivePage
public IWorkbenchPage getActivePage()
-
canDecorateEditorParts
public String[] canDecorateEditorParts()
Description copied from interface:EMFProfileApplicationDecorator
returns editor part extension ids which this decorator supports.- Specified by:
canDecorateEditorParts
in interfaceEMFProfileApplicationDecorator
- Returns:
-
setPluginExtensionOperationsListener
public void setPluginExtensionOperationsListener(PluginExtensionOperationsListener listener)
Description copied from interface:EMFProfileApplicationDecorator
Sets the listener for extension plug-in which can execute operations on extended plug-in.- Specified by:
setPluginExtensionOperationsListener
in interfaceEMFProfileApplicationDecorator
- Parameters:
listener
- ornull
to remove a listener.
-
decorate
public void decorate(EObject eObject, List<Image> images, List<String> toolTipTexts)
Description copied from interface:EMFProfileApplicationDecorator
Decorating graphical representation of element holdingEObject
. Graphical element will be decorated with images and tool tip texts that represent appliedStereotype
s on thisEObject
.- Specified by:
decorate
in interfaceEMFProfileApplicationDecorator
- Parameters:
eObject
-EObject
in question.images
- Image representation of appliedStereotype
s onEOjbect
.toolTipTexts
- Names ofStereotype
s applied onEObject
.
-
getPluginExtensionOperationsListener
public static PluginExtensionOperationsListener getPluginExtensionOperationsListener()
-
selectionChanged
public void selectionChanged(IWorkbenchPart part, ISelection selection)
- Specified by:
selectionChanged
in interfaceISelectionListener
-
-