Browser View

org.eclipse.atf.mozilla.ide.ui.view

1.0

This extension point allows views to be declared that will be created by opened browsers. This extension point allows views that request a certain adapter from the browser to obtain an instance of that class specified in the extension point from the browser.

<!ELEMENT extension (view)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT view EMPTY>

<!ATTLIST view

class   CDATA #REQUIRED

type    CDATA #REQUIRED

browser CDATA #IMPLIED>


The following example creates the com.xyz.MyDOMInspectorPage for the adapter type org.eclipse.atf.mozilla.ide.ui.inspector.IDOMInspector for the Mozilla browser type.

<extension point=

"org.eclipse.atf.mozilla.ide.ui.view"

>

<view browser=

"Mozilla"

type=

"org.eclipse.atf.mozilla.ide.ui.inspector.IDOMInspector"

class=

"com.xyz.MyDOMInspectorPage"

/>

</extension>

The specified class must have a default constructor and if it implements the org.eclipse.atf.mozilla.ide.ui.browser.views.IBrowserView interface then the setBrowser method will be called with the parameter of the browser creating the view.

ATF uses this extension point to contribute the DOM Inspector, DOM Source, CSS, and Request Monitor views.