Java Reference
In-Depth Information
<entry label="Topic"
kind="tool"
description="Create a new Topic"
path="/nodeDrawer/"
small_icon="icons/obj16/MindmapDiagramFile.gif"
large_icon=""
id="Topic"/>
</contribution>
</paletteProvider>
</extension>
API information:
The interface org.eclipse.gmf.runtime.diagram.ui.services.
IPaletteProvider should be implemented by the class declared, if the
default org.eclipse.gmf.runtime.diagram.ui.providers.Default
PaletteProvider is not used.
Notes:
Diagrams generated using the GMF tooling do not currently use this
extension-point. Instead, a *PaletteFactory class is generated in the
*.diagram.part package.
10.4.5 Decoration Service
Validation errors, checkout state, or other decorations often need to be applied
to a diagram element. The runtime's DecorationService supports the addition of
decorator icons on top of figures in a declarative manner and without specific
knowledge of the underlying figure. It does this by using a layer placed above the
shapes, thereby allowing it to even span EditPart hierarchies. Figure 10-29
shows the main elements of the service.
To use this service, you must implement IDecorationProvider , where the
createDecorators() method supports the installation of a custom decoration
or image in a predefined location on the shape.
DecoratorProvider Extension-Point
Identifier: org.eclipse.gmf.runtime.diagram.ui.
decoratorProviders
Description: This extension-point defines decorator providers for the
Decorator Service ( org.eclipse.gmf.runtime.diagram.ui.services.
decorator ). The DecorationService enables clients to decorate diagram ele-
ments with an image or figure.
Search WWH ::




Custom Search