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

    Modifier and Type
    Method
    Description
    void
    void
    addDecoration(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoration decoration)
     
    void
    Set<org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoration>
     
    void
    void
    refresh(List<Image> images, List<String> toolTipTexts)
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EMFProfileDecorator

      public EMFProfileDecorator(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
  • Method Details

    • 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 calls refresh() to actually refresh graphical decorations.
      Parameters:
      images -
      toolTipTexts -
    • refresh

      public void refresh()
    • activate

      public void activate()
    • deactivate

      public void deactivate()
      Specified by:
      deactivate in interface org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecorator
      Overrides:
      deactivate in class org.eclipse.gmf.runtime.diagram.ui.services.decorator.AbstractDecorator