Class GMFProfileDecoratorProvider

  • All Implemented Interfaces:
    org.eclipse.gmf.runtime.common.core.service.IProvider, org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorProvider

    public class GMFProfileDecoratorProvider
    extends org.eclipse.gmf.runtime.common.core.service.AbstractProvider
    implements org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorProvider
    GMF IDecoratorProvider for stereotype applications.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String PROFILE
      The key used for the profile decoration
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createDecorators​(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
      static EObject getDecoratorTargetElement​(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
      Utility method to retrieve the EObject from the supplied decoratorTarget.
      static org.eclipse.gmf.runtime.notation.Node getDecoratorTargetNode​(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
      Utility method to retrieve Node from the supplied decoratorTarget.
      static org.eclipse.gef.EditPartViewer getEditPartViewer​(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
      Utility method to retrieve the root EditPartViewer from the supplied decoratorTarget.
      static org.eclipse.gef.RootEditPart getRootEditPart​(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
      Utility method to retrieve the root RootEditPart from the supplied decoratorTarget.
      boolean provides​(org.eclipse.gmf.runtime.common.core.service.IOperation operation)
      • Methods inherited from class org.eclipse.gmf.runtime.common.core.service.AbstractProvider

        addProviderChangeListener, fireProviderChange, removeProviderChangeListener
      • Methods inherited from interface org.eclipse.gmf.runtime.common.core.service.IProvider

        addProviderChangeListener, removeProviderChangeListener
    • Constructor Detail

      • GMFProfileDecoratorProvider

        public GMFProfileDecoratorProvider()
    • Method Detail

      • getDecoratorTargetNode

        public static org.eclipse.gmf.runtime.notation.Node getDecoratorTargetNode​(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
        Utility method to retrieve Node from the supplied decoratorTarget.
        Parameters:
        decoratorTarget - IDecoratorTarget to retrieve Node from.
        Returns:
        node Node from the decoratorElement or null if not retrievable.
      • getDecoratorTargetElement

        public static EObject getDecoratorTargetElement​(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
        Utility method to retrieve the EObject from the supplied decoratorTarget.
        Parameters:
        decoratorTarget - IDecoratorTarget to retrieve EObject from.
        Returns:
        eObject EObject from the decoratorElement or null if not retrievable.
      • getEditPartViewer

        public static org.eclipse.gef.EditPartViewer getEditPartViewer​(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
        Utility method to retrieve the root EditPartViewer from the supplied decoratorTarget.
        Parameters:
        decoratorTarget - IDecoratorTarget to retrieve EditPartViewer from.
        Returns:
        editPart EditPartViewer from the decoratorElement or null if not retrievable.
      • getRootEditPart

        public static org.eclipse.gef.RootEditPart getRootEditPart​(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
        Utility method to retrieve the root RootEditPart from the supplied decoratorTarget.
        Parameters:
        decoratorTarget - IDecoratorTarget to retrieve RootEditPart from.
        Returns:
        editPart RootEditPart from the decoratorElement or null if not retrievable.
      • createDecorators

        public void createDecorators​(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
        Specified by:
        createDecorators in interface org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorProvider
      • provides

        public boolean provides​(org.eclipse.gmf.runtime.common.core.service.IOperation operation)
        Specified by:
        provides in interface org.eclipse.gmf.runtime.common.core.service.IProvider