A global action describes the location of an executable action described by an action descriptor. Global actions are usually used for action descriptors that do not necessarily belong to a certain type (element type, filter type, …).
There are two types of global actions: workbench actions and editor actions.
- Workbench actions:
- Appear in the Eclipse menu bar and additionally under the sub menu
Global actions of the application in the
Application Explorer view.
- Have action context (initial property values) which are created from the user’s selection.
Note: Caused by an existing restriction in Eclipse 4.x, global actions are currently not shown in the Eclipse menu bar.
It is not guaranteed that the Editor Actions are visible in all Eclipse editors. It depends on the Editor provider. Editor Actions are displayed at least in the context menu of the following editors:
- All
Micro Focus Eclipse text editors integrated in
Enterprise Developer (like the COBOL, PL/I, Assembler, JCL editors and others).
- All
IDz integrated language editors (like the LPEX, COBOL, PL/I, Assembler, JCL editors and others).
- All standard Eclipse text editors (like the Java, XML, Text editors and others).
Attribute
|
Type
|
Description
|
ID *
|
ID
|
The ID of the global action.
|
TargetID *
|
Action Descriptor
|
Reference to an action descriptor.
|
ISA Editor Action [C]
|
ISA_Editor_Action
|
Complex attribute for editor actions. See
Global Action is an Editor Action for more information.
|
ISA Workbench Action [C]
|
ISA_Workbench_Action
|
Complex attribute for workbench actions. See
Global Action is a Workbench Action for more information.
|
Visible Condition [O]
|
ActionVisible-Condition
|
This complex attribute lets you define when the action is shown in the menu bar or the editor's context menu.
|
Enabled Condition [O]
|
ActionEnabled-Condition
|
This complex attribute lets you define when the action is activated. If the Enabled Condition does not apply the action is disabled.
|
Label [O]
|
String
|
The global action label that appears in context menus or the menu bar.
If not specified, the referenced action descriptor label is used.
|
Separator After [o]
|
Boolean
|
Determines whether to insert a separator line behind the menu bar or context menu entry.
The default value is false.
|
SeqNo *
|
Integer
|
The position number of the global action in menus.
|
Submenu [O]
|
String
|
The name of a submenu in which the action should appear. If not specified, the action is created as a top level menu entry.
|
Icon [O]
|
Icon
|
The icon of the global action to display in menus.
|