Action Definitions

org.eclipse.ui.actionDefinitions

Release 2.0

WARNING: This extension point is DEPRECATED.
Do not use this extension point, it will be removed in future versions of this product. Instead, use the extension point org.eclipse.ui.commands

This extension point is used to register action definitions. Accelerators (see the Accelerator Sets extension point) use action definitions to reference actions. An action associates itself with a given accelerator by registering with that accelerator's associated action definition. An action registers itself with an action definition by calling the setActionDefinitionId(String id) method and supplying the action definition's id as an argument.

<!ELEMENT extension (actionDefinition*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT actionDefinition EMPTY>

<!ATTLIST actionDefinition

id          CDATA #REQUIRED

name        CDATA #IMPLIED

description CDATA #IMPLIED>


Following is an example of an action definition extension:

   

<extension point=

"org.eclipse.ui.actionDefinitions"

>

<actionDefinition id=

"org.eclipse.ui.file.save"

>

</actionDefinition>

<actionDefinition id=

"org.eclipse.ui.file.saveAll"

>

</actionDefinition>

<actionDefinition id=

"org.eclipse.ui.file.close"

>

</actionDefinition>

<actionDefinition id=

"org.eclipse.ui.file.closeAll"

>

</actionDefinition>

<actionDefinition id=

"org.eclipse.ui.file.print"

>

</actionDefinition>

</extension>

The methods public void setActionDefinitionId(String id) and public String getActionDefinitionId() have been added to IAction.

NOTE - other attributes may be added in the future, as needed.

The workbench provides many action definitions.