FileDocCategorySizeDatePackage
AndroidPreferencePage.javaAPI DocAndroid 1.5 API8732Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.adt.preferences

AndroidPreferencePage

public class AndroidPreferencePage extends org.eclipse.jface.preference.FieldEditorPreferencePage implements org.eclipse.ui.IWorkbenchPreferencePage
This class represents a preference page that is contributed to the Preferences dialog. By subclassing FieldEditorPreferencePage, we can use the field support built into JFace that allows us to create a page that is small and knows how to save, restore and apply itself.

This page is used to modify preferences only. They are stored in the preference store that belongs to the main plug-in class. That way, preferences can be accessed directly via the preference store.

Fields Summary
private SdkDirectoryFieldEditor
mDirectoryField
Constructors Summary
public AndroidPreferencePage()

        super(GRID);
        setPreferenceStore(AdtPlugin.getDefault().getPreferenceStore());
        setDescription(Messages.AndroidPreferencePage_Title);
    
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.


        mDirectoryField = new SdkDirectoryFieldEditor(AdtPlugin.PREFS_SDK_DIR,
                Messages.AndroidPreferencePage_SDK_Location_, getFieldEditorParent());
        
        addField(mDirectoryField);
    
public voiddispose()

        super.dispose();
        
        if (mDirectoryField != null) {
            mDirectoryField.dispose();
            mDirectoryField = null;
        }
    
public voidinit(org.eclipse.ui.IWorkbench workbench)