DOM Inspector Menu Action

org.eclipse.atf.mozilla.ide.ui.action

1.0

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.

<!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>


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>

The class specified must extend the org.eclipse.atf.mozilla.ide.ui.actions.DOMSelectionAction class.

The actions supplied by ATF can be found in the org.eclipse.atf.mozilla.ide.ui.extras plugin.