Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Plug-in Developer Guide
Previous Page Home Next Page

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.

Configuration Markup:

<!ELEMENT extension ( actionSetPartAssociation*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>

  • point - a fully qualified identifier of the target extension point
  • id - an optional identifier of the extension instance
  • name - an optional name of the extension instance

<!ELEMENT actionSetPartAssociation ( part*)>

<!ATTLIST actionSetPartAssociation

targetID IDREF #REQUIRED

>

  • targetID - the unique identifier of the action set (as specified in the registry) which is to be associated with particular workbench views and/or editors.

<!ELEMENT part EMPTY>

<!ATTLIST part

id CDATA #REQUIRED

>

  • id - the unique identifier of the part (view or editor) to be associated with the action set.

Examples:
The following is an example of an action set part association (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.CompilationUnitError"
/>
  </actionSetPartAssociation>
 </extension>

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


Copyright (c) 2002, 2007 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v10.html


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire