Jump to: navigation, search

Difference between revisions of "FAQ What is an action set?"

m
(See Also:)
 
Line 24: Line 24:
 
*[http://www.eclipse.org/articles/article.php?file=Article-action-contribution/index.html "Contributing Actions to the Eclipse Workbench"]
 
*[http://www.eclipse.org/articles/article.php?file=Article-action-contribution/index.html "Contributing Actions to the Eclipse Workbench"]
  
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>
+
{{Template:FAQ_Tagline}}

Latest revision as of 13:58, 30 May 2013

An action set is a logical group of menus and actions that should appear together at the same time. For example, when you are debugging a Java program, you want all the debug actions, such as Step and Resume, to appear in the menus. Actions in an action set can appear either in the workbench window toolbar or in the main menus.

You can create your own action sets, thus contributing to the main menu and toolbar, using the org.eclipse.ui.actionSets extension point. Here is an action set definition from the FAQ examples plug-in:

   <extension
         point="org.eclipse.ui.actionSets">
      <actionSet
         label="Sample Action Set"
         visible="false"
         id="org.eclipse.faq.examples.actionSet">
         <menu>...</menu>
         <action>...</action>
         ...
      </actionSet>
   </extension>

The action set declaration itself is followed by a series of menu and action attributes, which are discussed in more detail in the FAQs that follow this one. Action sets are an entirely declarative concept. They cannot be defined, customized, or manipulated programmatically.

See Also:


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.