Explore Palette

Identifier:
com.ibm.xtools.emf.query.ui.explorePalette

Since:
7.0.5

Description:
This extension point provides a means to extend the "Explore" palette in diagram editors that support the expore palette. The explore palette is composed of tools that are composed of a system query that is executed every time the tool is invoked.

Configuration Markup:

<!ELEMENT extension (paletteProvider+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT paletteProvider (enablement? , contribution+)>

A palette provider is matched against an enablement expression in order to determine if its contributions should be added to the palette. The enablement expression is provided with the diagram editor part. The following additional variables are provided to the enablement expression: "diagramType" and "defaultPaletteContent." Diagram type is a string that corresponds to the diaram type of the editor. The palette details variable is assigned to the object provided by the editor's getDefaultPaletteContent() method.



<!ELEMENT contribution (entry+)>

A contribution is composed of one or more palette entries. A palette entry can be either a drawer or a tool.



<!ELEMENT entry (expand?)>

<!ATTLIST entry

kind              (drawer|tool)

id                CDATA #REQUIRED

path              CDATA #IMPLIED

label             CDATA #IMPLIED

description       CDATA #IMPLIED

small_icon        CDATA #IMPLIED

large_icon        CDATA #IMPLIED

system_query_file CDATA #IMPLIED>

A palette entry can be either a drawer or a tool. For a drawer, the label, id and description attributes should be set. For a tool, the label, id, path ("/drawer.id"), description, small_icon, large_icon and system_query_file attributes should be set.



<!ELEMENT expand EMPTY>

<!ATTLIST expand

force (true | false) "false">

Sets the default expand state for the drawer to be forced open or forced close.




Licensed Materials - Property of IBM

Copyright IBM Corp. 2007, 2008. All Rights Reserved.

US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.