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
Constructors Constructor Description EMFProfileDecorator(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
void
addDecoration(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoration decoration)
void
deactivate()
Set<org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoration>
getDecorations()
void
refresh()
void
refresh(List<Image> images, List<String> toolTipTexts)
This method needs to be called to provide decoration images and tool tip texts.protected void
removeDecorations()
Removes all decorations.
-
-
-
Method Detail
-
getDecorations
public Set<org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoration> 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
public void refresh(List<Image> images, List<String> toolTipTexts)
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
-
-