FileDocCategorySizeDatePackage
UiElementTreeEditPart.javaAPI DocAndroid 1.5 API2067Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.layout.parts

UiElementTreeEditPart

public class UiElementTreeEditPart extends org.eclipse.gef.editparts.AbstractTreeEditPart
Base {@link AbstractTreeEditPart} to represent {@link UiElementNode} objects in the {@link IContentOutlinePage} linked to the layout editor.

Fields Summary
Constructors Summary
public UiElementTreeEditPart(com.android.ide.eclipse.editors.uimodel.UiElementNode uiElementNode)

        setModel(uiElementNode);
    
Methods Summary
public voidactivate()

        if (!isActive()) {
            super.activate();
            // TODO
        }
    
protected voidcreateEditPolicies()

        // TODO Auto-generated method stub
        super.createEditPolicies();
    
public voiddeactivate()

        if (isActive()) {
            super.deactivate();
            // TODO
        }
    
protected org.eclipse.swt.graphics.ImagegetImage()

        return getUiNode().getDescriptor().getIcon();
    
protected java.lang.StringgetText()

        return getUiNode().getShortDescription();
    
protected com.android.ide.eclipse.editors.uimodel.UiElementNodegetUiNode()
Returns the casted model object represented by this {@link AbstractTreeEditPart}.

        return (UiElementNode)getModel();