Class EMFProfileDecorator
java.lang.Object
org.eclipse.gmf.runtime.diagram.ui.services.decorator.AbstractDecorator
org.modelversioning.emfprofile.application.decorator.gmf.decoration.EMFProfileDecorator
- All Implemented Interfaces:
org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecorator
public class EMFProfileDecorator
extends org.eclipse.gmf.runtime.diagram.ui.services.decorator.AbstractDecorator
Decorator for EMF profiles.
-
Constructor Summary
ConstructorDescriptionEMFProfileDecorator
(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget) -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
void
addDecoration
(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoration decoration) void
Set<org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoration>
void
refresh()
void
This method needs to be called to provide decoration images and tool tip texts.protected void
Removes all decorations.Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.services.decorator.AbstractDecorator
getDecoration, getDecoratorTarget, removeDecoration, setDecoration
-
Constructor Details
-
EMFProfileDecorator
public EMFProfileDecorator(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
-
-
Method Details
-
getDecorations
- Returns:
- Returns the decorations.
-
addDecoration
public void addDecoration(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoration decoration) - Parameters:
decoration
- The decoration to add.
-
removeDecorations
protected void removeDecorations()Removes all decorations. -
refresh
This method needs to be called to provide decoration images and tool tip texts. It then callsrefresh()
to actually refresh graphical decorations.- Parameters:
images
-toolTipTexts
-
-
refresh
public void refresh() -
activate
public void activate() -
deactivate
public void deactivate()- Specified by:
deactivate
in interfaceorg.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecorator
- Overrides:
deactivate
in classorg.eclipse.gmf.runtime.diagram.ui.services.decorator.AbstractDecorator
-