DOM Inspector Menu Action
Identifier:
org.eclipse.atf.mozilla.ide.ui.action
Since:
1.0
Description:
This extension point allows action to be contributed to the context menu of the DOM Inspector when a DOM node is right-clicked from the view.
Configuration Markup:
<!ELEMENT extension (action)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT action EMPTY>
<!ATTLIST action
class CDATA #REQUIRED
icon CDATA #REQUIRED
text CDATA #REQUIRED
types CDATA #IMPLIED
path CDATA #IMPLIED>
- class - The action class that implements DOMSelectionAction
- icon - The icon to display for this action in the context menu
- text - The text that will appear in the menu
- types - The node types that this action is valid for. The valid types are ALL, ELEMENT_NODE, ATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE, ENTITY_REFERENCE_NODE, ENTITY_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, DOCUMENT_FRAGMENT_NODE, NOTATION_NODE. Multiple types of nodes can be specified in this field by comma seperating the types.
- path - The path for this menu item which may contain one or two segments. The actions will be grouped by the first segment of this field. The path can contain a maximum of two segments with the second segment being the submenu entry group for this action. For example if "X/Y" is specified, a submenu entry called "Y" will be created in the "X" group and in the "Y" submenu will be the text specified for this action.
Examples:
This example creates an action using the com.xyz.ImportNode class that extends DOMSelectionAction. The action will be placed in a submenu under the Elements entry in the Actions group.
<extension
point=
"org.eclipse.atf.mozilla.ide.ui.action"
>
<action
path=
"Actions/Elements"
icon=
"icons/import.gif"
text=
"Import"
types=
"ELEMENT_NODE"
class=
"com.xyz.ImportNode"
/>
</extension>
API Information:
The class specified must extend the org.eclipse.atf.mozilla.ide.ui.actions.DOMSelectionAction class.
Supplied Implementation:
The actions supplied by ATF can be found in the org.eclipse.atf.mozilla.ide.ui.extras plugin.