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

FlagValueCellEditor

public class FlagValueCellEditor 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.UiFlagAttributeNode
mUiFlagAttribute
Constructors Summary
public FlagValueCellEditor(org.eclipse.swt.widgets.Composite parent)

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

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

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