FileDocCategorySizeDatePackage
PreferencePage.javaAPI DocAndroid 1.5 API3172Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.ddms.preferences

PreferencePage

public class PreferencePage extends org.eclipse.jface.preference.FieldEditorPreferencePage implements org.eclipse.ui.IWorkbenchPreferencePage

Fields Summary
Constructors Summary
public PreferencePage()

        super(GRID);
        setPreferenceStore(DdmsPlugin.getDefault().getPreferenceStore());
    
Methods Summary
public voidcreateFieldEditors()
Creates the field editors. Field editors are abstractions of the common GUI blocks needed to manipulate various types of preferences. Each field editor knows how to save and restore itself.

        IntegerFieldEditor ife;

        ife = new PortFieldEditor(PreferenceInitializer.ATTR_DEBUG_PORT_BASE,
            "ADB debugger base port:", getFieldEditorParent());
        addField(ife);

        BooleanFieldEditor bfe;

        bfe = new BooleanFieldEditor(PreferenceInitializer.ATTR_DEFAULT_THREAD_UPDATE,
            "Thread updates enabled by default", getFieldEditorParent());
        addField(bfe);

        bfe = new BooleanFieldEditor(PreferenceInitializer.ATTR_DEFAULT_HEAP_UPDATE,
            "Heap updates enabled by default", getFieldEditorParent());
        addField(bfe);

        ife = new IntegerFieldEditor(PreferenceInitializer.ATTR_THREAD_INTERVAL,
            "Thread status refresh interval (seconds):", getFieldEditorParent());
        ife.setValidRange(1, 60);
        addField(ife);

        RadioGroupFieldEditor rgfe = new RadioGroupFieldEditor(PreferenceInitializer.ATTR_LOG_LEVEL,
                "Logging Level", 1, new String[][] {
                    { "Verbose", LogLevel.VERBOSE.getStringValue() },
                    { "Debug", LogLevel.DEBUG.getStringValue() },
                    { "Info", LogLevel.INFO.getStringValue() },
                    { "Warning", LogLevel.WARN.getStringValue() },
                    { "Error", LogLevel.ERROR.getStringValue() },
                    { "Assert", LogLevel.ASSERT.getStringValue() }
                    },
                getFieldEditorParent(), true);
        addField(rgfe);

    
public voidinit(org.eclipse.ui.IWorkbench workbench)