JDG2E: Tool actions

com.ibm.jdg2e.extensionpoint.toolAction

Chapter 11, Creating Extension Points: How Others Can Extend Your Plug-ins

This extension-point provides a common pulldown item on the application toolbar where all of our tool commands may execute. This requires a simple framework that can be easily implemented using an extension point.

As others build additional tool plug-ins, they can use this extension point mechanism to add tool command menu items.

<!ELEMENT tool EMPTY>

<!ATTLIST tool

action CDATA #REQUIRED

label  CDATA #REQUIRED>

Tool action to be added to pulldown menu.



<!ELEMENT extension (tool)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


   

<extension point=

"com.ibm.jdg2e.extensionpoint.toolAction"

>

<tool label=

"JDG2E: New Command 1 (ContributedTestToolAction)"

action=

"com.ibm.jdg2e.extensionpoint.test.ContributedTestToolAction:Greetings from New Command 1"

>

</tool>

<tool label=

"JDG2E: New Command 2 (ContributedTestToolAction)"

action=

"com.ibm.jdg2e.extensionpoint.test.ContributedTestToolAction"

>

</tool>

</extension>

None.

None.