FileDocCategorySizeDatePackage
ResourceValueCellEditor.javaAPI DocAndroid 1.5 API2059Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.ui

ResourceValueCellEditor

public class ResourceValueCellEditor extends EditableDialogCellEditor
DialogCellEditor able to receive a {@link UiFlagAttributeNode} in the {@link #setValue(Object)} method.

The dialog box opened is the same as the one in the ui created by {@link UiFlagAttributeNode#createUiControl(Composite, org.eclipse.ui.forms.IManagedForm)}

Fields Summary
private com.android.ide.eclipse.editors.uimodel.UiResourceAttributeNode
mUiResourceAttribute
Constructors Summary
public ResourceValueCellEditor(org.eclipse.swt.widgets.Composite parent)

        super(parent);
    
Methods Summary
protected voiddoSetValue(java.lang.Object value)

        if (value instanceof UiResourceAttributeNode) {
            mUiResourceAttribute = (UiResourceAttributeNode)value;
            super.doSetValue(mUiResourceAttribute.getCurrentValue());
            return;
        }
        
        super.doSetValue(value);
    
protected java.lang.ObjectopenDialogBox(org.eclipse.swt.widgets.Control cellEditorWindow)

        if (mUiResourceAttribute != null) {
            String currentValue = (String)getValue();
            return mUiResourceAttribute.showDialog(cellEditorWindow.getShell(), currentValue);
        }
        
        return null;