Class GMFProfileDecoratorProvider
- java.lang.Object
-
- org.eclipse.gmf.runtime.common.core.service.AbstractProvider
-
- org.modelversioning.emfprofile.application.decorator.gmf.decoration.provider.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
GMFIDecoratorProvider
for stereotype applications.
-
-
Constructor Summary
Constructors Constructor Description GMFProfileDecoratorProvider()
-
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 theEObject
from the supplieddecoratorTarget
.static org.eclipse.gmf.runtime.notation.Node
getDecoratorTargetNode(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
Utility method to retrieveNode
from the supplieddecoratorTarget
.static org.eclipse.gef.EditPartViewer
getEditPartViewer(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
Utility method to retrieve the rootEditPartViewer
from the supplieddecoratorTarget
.static org.eclipse.gef.RootEditPart
getRootEditPart(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
Utility method to retrieve the rootRootEditPart
from the supplieddecoratorTarget
.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
-
-
-
-
Field Detail
-
PROFILE
public static final String PROFILE
The key used for the profile decoration- See Also:
- Constant Field Values
-
-
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 retrieveNode
from the supplieddecoratorTarget
.- Parameters:
decoratorTarget
-IDecoratorTarget
to retrieveNode
from.- Returns:
- node
Node
from thedecoratorElement
ornull
if not retrievable.
-
getDecoratorTargetElement
public static EObject getDecoratorTargetElement(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
Utility method to retrieve theEObject
from the supplieddecoratorTarget
.
-
getEditPartViewer
public static org.eclipse.gef.EditPartViewer getEditPartViewer(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
Utility method to retrieve the rootEditPartViewer
from the supplieddecoratorTarget
.- Parameters:
decoratorTarget
-IDecoratorTarget
to retrieveEditPartViewer
from.- Returns:
- editPart
EditPartViewer
from thedecoratorElement
ornull
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 rootRootEditPart
from the supplieddecoratorTarget
.- Parameters:
decoratorTarget
-IDecoratorTarget
to retrieveRootEditPart
from.- Returns:
- editPart
RootEditPart
from thedecoratorElement
ornull
if not retrievable.
-
createDecorators
public void createDecorators(org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget decoratorTarget)
- Specified by:
createDecorators
in interfaceorg.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 interfaceorg.eclipse.gmf.runtime.common.core.service.IProvider
-
-