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

BuildPreferencePage

public class BuildPreferencePage extends org.eclipse.jface.preference.FieldEditorPreferencePage implements org.eclipse.ui.IWorkbenchPreferencePage
Preference page for build options.

Fields Summary
static final String
BUILD_STR_SILENT
static final String
BUILD_STR_NORMAL
static final String
BUILD_STR_VERBOSE
Constructors Summary
public BuildPreferencePage()

 //$NON-NLS-1$

      
        super(GRID);
        setPreferenceStore(AdtPlugin.getDefault().getPreferenceStore());
        setDescription(Messages.BuildPreferencePage_Title);
    
Methods Summary
protected voidcreateFieldEditors()

        addField(new BooleanFieldEditor(AdtPlugin.PREFS_RES_AUTO_REFRESH,
                Messages.BuildPreferencePage_Auto_Refresh_Resources_on_Build,
                getFieldEditorParent()));

        RadioGroupFieldEditor rgfe = new RadioGroupFieldEditor(
                AdtPlugin.PREFS_BUILD_VERBOSITY,
                Messages.BuildPreferencePage_Build_Output, 1, new String[][] {
                    { Messages.BuildPreferencePage_Silent, BUILD_STR_SILENT },
                    { Messages.BuildPreferencePage_Normal, BUILD_STR_NORMAL },
                    { Messages.BuildPreferencePage_Verbose, BUILD_STR_VERBOSE }
                    },
                getFieldEditorParent(), true);
        addField(rgfe);

        addField(new ReadOnlyFieldEditor(AdtPlugin.PREFS_DEFAULT_DEBUG_KEYSTORE,
                Messages.BuildPreferencePage_Default_KeyStore, getFieldEditorParent()));

        addField(new KeystoreFieldEditor(AdtPlugin.PREFS_CUSTOM_DEBUG_KEYSTORE,
                Messages.BuildPreferencePage_Custom_Keystore, getFieldEditorParent()));

    
public static intgetBuildLevel(java.lang.String buildPrefValue)

        if (BUILD_STR_SILENT.equals(buildPrefValue)) {
            return AdtConstants.BUILD_ALWAYS;
        } else if (BUILD_STR_VERBOSE.equals(buildPrefValue)) {
            return AdtConstants.BUILD_VERBOSE;
        }

        return AdtConstants.BUILD_NORMAL;
    
public voidinit(org.eclipse.ui.IWorkbench workbench)