Java Reference
In-Depth Information
<!ELEMENT context EMPTY>
<!ATTLIST context
decoratorTargets CDATA #IMPLIED>
The context contains a list of objects to be decorated using this provider. The
list defined in decoratorTargets consists of items previously defined in the
XML using the object element.
decoratorTargets —The decoratorTargets is a comma-separated list
of objects that this provider supports. The xml defined object is specified using
its id .
Examples:
An extension to the decorator service requires the implementation of the
IDecorator and IDecoratorProvider interfaces. The following is an exam-
ple decorator service provider extension:
<extension
point="org.eclipse.gmf.runtime.diagram.ui.decoratorProviders">
<decoratorProvider class=
"org.eclipse.gmf.runtime.diagram.ui.providers.MyDecoratorProvider">
<Priority name="Lowest"/>
<object class=
"org.eclipse.gmf.runtime.notation.Node
(org.eclipse.gmf.runtime.notation)"
id="NODE">
<method name="getType()" value="MyNodeType"/>
</object>
<context decoratorTargets="NODE"/>
</decoratorProvider>
</extension>
API information:
For API information, see the classes and interfaces defined in the org.
eclipse.gmf.runtime.diagram.ui.services.decorator package.
Clients that provide an extension to the decorator service need to create
classes that implement the following interfaces:
org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecorator
org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorProvider
Notes:
Diagrams generated using the GMF tooling use this extension-point when
audits are defined for a diagram. Audit limit violations cause decoration of the
Search WWH ::




Custom Search