Action Set Part Associations

Identifier: org.eclipse.ui.actionSetPartAssociations

Description: This extension point is used to define an action set which should be added to a perspective when a part (view or editor) is opened in the perspective. In the case of an editor, the action set will remain visible while the editor is the current editor. In the case of a view, the action set will be visible when the view is the active part.

Since: Release 2.0

Configuration Markup:

   <!ELEMENT actionSetPartAssociation (part)*>
   <!ATTLIST actionSetPartAssociation
      targetID       CDATA #REQUIRED
   >

   <!ELEMENT part EMPTY>
   <!ATTLIST part
      id         CDATA #REQUIRED
   > Examples:

The following is an example of an action set part association extension (note the subelement and the way attributes are used):

<extension point="org.eclipse.ui.actionSetPartAssociations">
   <actionSetPartAssociation
      targetID="org.eclipse.jdt.ui.refactoring.actionSet">
      <part id="org.eclipse.jdt.ui.PackageExplorer"/>
      <part id="org.eclipse.jdt.ui.CompilationUnitEditor"/>
   </actionSetPartAssociation>
</extension>

In the example above, a view and editor are associated with the refactoring action set.

API Information: The user may override these associations using the customize perspective dialog. Regardless of these associations, action sets which the user turns off will never appear and action sets which the user turns on will always be visible.

Copyright IBM Corporation and others 2000, 2002.