To edit an existing document type action or create a new one, open the
Preferences dialog box , go to
Document Type Association, use the New, Edit,
Duplicate, or Extend button, click on
the Author tab, and then the Actions subtab. At
the bottom of this subtab, click
New to
create a new action, or
Edit to
modify an existing one.
Figure 1. Action Dialog Box
The following options are available in the
Action dialog box:
- ID
- Specifies a unique action identifier.
- Name
- Specifies the name of the action. This name is displayed as a tooltip or as a menu
item.
- Menu access key
- In Windows, you can access menus by holding down
Alt and pressing the keyboard key that
corresponds to the letter that is underlined in the name of the menu. Then,
while still holding down Alt, you can
select submenus and menu action the same way by pressing subsequent corresponding
keys. You can use this option to specify the letter in the name of the action
that can be used to access the action.
- Description
- A description of the action. This description is displayed as a tooltip when hovering
over the action.
- How to translate frameworks link
- Use this link to see more information about Localizing Frameworks.
- Large icon
- Allows you to select an image for the icon that Oxygen XML Author Eclipse plugin uses for the
toolbar action.
Tip: A good practice is to store the image files inside the
framework directory and use the
${frameworks} editor variable to make the image relative
to the
framework location. If the images are bundled in a
jar archive (for instance, along with some Java operations
implementation), it is convenient to reference the images by their relative path
location in the
class-path.
- Small icon
- Allows you to select an image for the icon that Oxygen XML Author Eclipse plugin uses for the
contextual menu action.
Note: If you
are using a Retina or HiDPI display,
Oxygen XML Author Eclipse plugin automatically searches for
higher resolution icons in the path specified in both the
Large
icon and
Small icon options. For more
information, see
Using Retina/HiDPI Icons for the Actions from a Framework.
- Shortcut key
-
This field allows you to configure a shortcut key for the action that you are
editing. The + character separates the keys.
- Enable platform-independent shortcut keys
- If this checkbox is selected, the shortcut that you specify in this field is
platform-independent and the following modifiers are used:
- M1 represents the
Command key on macOS, and the
Ctrl key on other platforms.
- M2 represents the
Shift key.
- M3 represents the
Option key on macOS, and the
Alt key on other platforms.
- M4 represents the
Ctrl key on macOS, and is undefined on other
platforms.
- Operations section
-
In this section of the Action dialog box, you configure the
functionality of the action that you are editing. An action has one or more operation
modes. The evaluation of an XPath expression activates an operation mode. The first
selected operation mode is activated when you trigger the action. The scope of the
XPath expression must consist only of element nodes and attribute nodes of the edited
document. Otherwise, the XPath expression does not return a match and does not fire
the action. For more details see: Controlling Which Author Operations Gets Executed Through XPath Expressions.
- Evaluate activation XPath expressions even in read-only
contexts
- If this checkbox is selected, the action can be invoked even when the cursor is placed
in a read-only location.