Java Reference
In-Depth Information
<!ELEMENT predefinedEntry (expand?)>
<!ATTLIST predefinedEntry
id CDATA #REQUIRED
path CDATA #IMPLIED
remove (true | false) >
A descriptor for a palette contribution entry that another plug-in already has
defined and that will now be contributed.
id —The ID given to the palette entry when it was defined. If the palette
entry is in a palette container (the drawer or stack), the ID is considered the full
path of this palette entry.
path —A fully qualified path describing where this palette entry should
appear on the palette. All path IDs should have been previously defined. Previous
means either earlier in the XML file or in another one with a lower priority
(order). If a path ends with a separator ID, the new entry is appended to the ele-
ments following the separator (just before the next separator, or at the end of the
container, if it has no more separators below that one). If a path ends with a nor-
mal entry ID, the new entry is inserted after that entry. The path is not required
if this predefined entry is not being contributed. That is, a predefined entry can
be used to expand an existing drawer or remove an existing entry from the
palette.
remove —If true , an existing entry is removed.
Examples:
Following is a simple palette contribution with a single tool in a single
drawer:
<extension-point="org.eclipse.gmf.runtime.diagram.ui.paletteProviders">
<paletteProvider
class="
org.eclipse.gmf.runtime.diagram.ui.providers.DefaultPaletteProvider">
<Priority name="Highest"/>
<editor
id="org.eclipse.mindmap.diagram.editor.MindmapDiagramEditorID"/>
<contribution
factoryClass="
org.eclipse.mindmap.diagram.providers.MindmapPaletteFactory">
<entry label="Nodes"
kind="drawer"
description="Mindmap diagram nodes"
path="/"
small_icon="icons/obj16/MindmapDiagramFile.gif"
id="nodeDrawer">
<expand>
<content/>
</expand>
</entry>
Search WWH ::




Custom Search