
About the menus.xml file 189
<tool>
Description
Represents one tool; it contains all the shortcuts for the tool as subtags in the menus.xml file.
Attributes
{name}, id
■ name A localized version of the tool name.
■ id The internal tool identifier that identifies the tool to which the shortcuts apply.
Contents
This tag can contain one or more activate, override, or action tags.
Container
This tag must be contained in a menu tag.
Example
<tool name="Hand tool" id="com.macromedia.dreamweaver.tools.hand">
<!-- tool tags here -->
</tool>
<action>
Description
Contains the key combination and JavaScript to execute when the tool is active and the key
combination is pressed.
Attributes
{name}, key, command, id
■ name A localized version of the action.
■ key The key combination used to execute the action. For syntax details, see <menuitem>.
■ command The JavaScript statements to execute. This attribute has the same format as the
command attribute of <shortcut>.
■ id A unique ID used to reference the action.
Contents
None (empty tag).
Container
This tag must be contained in a tool tag.
Komentáře k této Příručce