FileDocCategorySizeDatePackage
MenuTreePage.javaAPI DocAndroid 1.5 API2186Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.menu

MenuTreePage

public final class MenuTreePage extends org.eclipse.ui.forms.editor.FormPage
Page for the menu form editor.

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


       
        super(editor, PAGE_ID, "Layout");  // 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 Menu");
        form.setImage(AdtPlugin.getAndroidLogo());

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