Class 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 Detail

      • EMFProfileDecorator

        public EMFProfileDecorator​(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
    • 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 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