FileDocCategorySizeDatePackage
XmlTreePage.javaAPI DocAndroid 1.5 API2177Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.xml

XmlTreePage

public final class XmlTreePage extends org.eclipse.ui.forms.editor.FormPage
Page for the xml form editor.

Fields Summary
public static final String
PAGE_ID
Page id used for switching tabs programmatically
XmlEditor
mEditor
Container editor
Constructors Summary
public XmlTreePage(XmlEditor editor)


       
        super(editor, PAGE_ID, "Structure");  // tab's label, keep it short
        mEditor = editor;
    
Methods Summary
protected voidcreateFormContent(org.eclipse.ui.forms.IManagedForm managedForm)
Creates the content in the form hosted in this page.

param
managedForm the form hosted in this page.

        super.createFormContent(managedForm);
        ScrolledForm form = managedForm.getForm();
        form.setText("Android Xml");
        form.setImage(AdtPlugin.getAndroidLogo());

        UiElementNode rootNode = mEditor.getUiRootNode();
        UiTreeBlock block = new UiTreeBlock(mEditor, rootNode,
                true /* autoCreateRoot */,
                null /* no element filters */,
                "Xml Elements",
                "List of all xml elements in this XML file.");
        block.createContent(managedForm);