Example usage for org.eclipse.jface.preference IPreferenceStore FALSE

List of usage examples for org.eclipse.jface.preference IPreferenceStore FALSE

Introduction

In this page you can find the example usage for org.eclipse.jface.preference IPreferenceStore FALSE.

Prototype

String FALSE

To view the source code for org.eclipse.jface.preference IPreferenceStore FALSE.

Click Source Link

Document

The string representation used for false ("false").

Usage

From source file:org.eclipse.cdt.internal.ui.preferences.SpellingConfigurationBlock.java

License:Open Source License

@Override
protected Control createContents(final Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout());

    List<Control> allControls = new ArrayList<Control>();
    final PixelConverter converter = new PixelConverter(parent);

    final String[] trueFalse = new String[] { IPreferenceStore.TRUE, IPreferenceStore.FALSE };

    Group user = new Group(composite, SWT.NONE);
    user.setText(PreferencesMessages.SpellingPreferencePage_group_user);
    user.setLayout(new GridLayout());
    user.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    allControls.add(user);//w  w  w .  j av a  2 s . c  om

    String label = PreferencesMessages.SpellingPreferencePage_ignore_digits_label;
    Control slave = addCheckBox(user, label, PREF_SPELLING_IGNORE_DIGITS, trueFalse, 0);
    allControls.add(slave);

    label = PreferencesMessages.SpellingPreferencePage_ignore_mixed_label;
    slave = addCheckBox(user, label, PREF_SPELLING_IGNORE_MIXED, trueFalse, 0);
    allControls.add(slave);

    label = PreferencesMessages.SpellingPreferencePage_ignore_sentence_label;
    slave = addCheckBox(user, label, PREF_SPELLING_IGNORE_SENTENCE, trueFalse, 0);
    allControls.add(slave);

    label = PreferencesMessages.SpellingPreferencePage_ignore_upper_label;
    slave = addCheckBox(user, label, PREF_SPELLING_IGNORE_UPPER, trueFalse, 0);
    allControls.add(slave);

    label = PreferencesMessages.SpellingPreferencePage_ignore_url_label;
    slave = addCheckBox(user, label, PREF_SPELLING_IGNORE_URLS, trueFalse, 0);
    allControls.add(slave);

    label = PreferencesMessages.SpellingPreferencePage_ignore_non_letters_label;
    slave = addCheckBox(user, label, PREF_SPELLING_IGNORE_NON_LETTERS, trueFalse, 0);
    allControls.add(slave);

    label = PreferencesMessages.SpellingPreferencePage_ignore_single_letters_label;
    slave = addCheckBox(user, label, PREF_SPELLING_IGNORE_SINGLE_LETTERS, trueFalse, 0);
    allControls.add(slave);

    label = PreferencesMessages.SpellingPreferencePage_ignore_string_literals_label;
    slave = addCheckBox(user, label, PREF_SPELLING_IGNORE_STRING_LITERALS, trueFalse, 0);
    allControls.add(slave);

    final Set<Locale> locales = SpellCheckEngine.getLocalesWithInstalledDictionaries();
    boolean hasPlaformDictionaries = locales.size() > 0;

    final Group engine = new Group(composite, SWT.NONE);
    if (hasPlaformDictionaries)
        engine.setText(PreferencesMessages.SpellingPreferencePage_group_dictionaries);
    else
        engine.setText(PreferencesMessages.SpellingPreferencePage_group_dictionary);
    engine.setLayout(new GridLayout(4, false));
    engine.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    allControls.add(engine);

    if (hasPlaformDictionaries) {
        label = PreferencesMessages.SpellingPreferencePage_dictionary_label;
        Combo combo = addComboBox(engine, label, PREF_SPELLING_LOCALE, getDictionaryCodes(locales),
                getDictionaryLabels(locales), 0);
        combo.setEnabled(locales.size() > 0);
        allControls.add(combo);
        allControls.add(fLabels.get(combo));

        new Label(engine, SWT.NONE); // placeholder
    }

    label = PreferencesMessages.SpellingPreferencePage_workspace_dictionary_label;
    fDictionaryPath = addTextField(engine, label, PREF_SPELLING_USER_DICTIONARY, 0, 0);
    GridData gd = (GridData) fDictionaryPath.getLayoutData();
    gd.grabExcessHorizontalSpace = true;
    gd.widthHint = converter.convertWidthInCharsToPixels(40);
    allControls.add(fDictionaryPath);
    allControls.add(fLabels.get(fDictionaryPath));

    Composite buttons = new Composite(engine, SWT.NONE);
    buttons.setLayout(new GridLayout(2, true));
    buttons.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));

    Button button = new Button(buttons, SWT.PUSH);
    button.setText(PreferencesMessages.SpellingPreferencePage_browse_label);
    button.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(final SelectionEvent event) {
            handleBrowseButtonSelected();
        }
    });
    SWTUtil.setButtonDimensionHint(button);
    button.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
    allControls.add(button);

    button = new Button(buttons, SWT.PUSH);
    button.setText(PreferencesMessages.SpellingPreferencePage_variables);
    button.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            handleVariablesButtonSelected();
        }
    });
    SWTUtil.setButtonDimensionHint(button);
    button.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
    allControls.add(button);

    // Description for user dictionary
    new Label(engine, SWT.NONE); // filler
    Label description = new Label(engine, SWT.NONE);
    gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    gd.horizontalSpan = 3;
    description.setLayoutData(gd);
    description.setText(PreferencesMessages.SpellingPreferencePage_user_dictionary_description);
    allControls.add(description);

    createEncodingFieldEditor(engine, allControls);

    Group advanced = new Group(composite, SWT.NONE);
    advanced.setText(PreferencesMessages.SpellingPreferencePage_group_advanced);
    advanced.setLayout(new GridLayout(3, false));
    advanced.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    allControls.add(advanced);

    label = PreferencesMessages.SpellingPreferencePage_problems_threshold;
    int digits = 4;
    Text text = addTextField(advanced, label, PREF_SPELLING_PROBLEMS_THRESHOLD, 0,
            converter.convertWidthInCharsToPixels(digits + 1));
    text.setTextLimit(digits);
    allControls.add(text);
    allControls.add(fLabels.get(text));

    label = PreferencesMessages.SpellingPreferencePage_proposals_threshold;
    digits = 3;
    text = addTextField(advanced, label, PREF_SPELLING_PROPOSAL_THRESHOLD, 0,
            converter.convertWidthInCharsToPixels(digits + 1));
    text.setTextLimit(digits);
    gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
    allControls.add(text);
    allControls.add(fLabels.get(text));

    if (SUPPORT_CONTENT_ASSIST_PROPOSALS) {
        label = PreferencesMessages.SpellingPreferencePage_enable_contentassist_label;
        button = addCheckBox(advanced, label, PREF_SPELLING_ENABLE_CONTENTASSIST, trueFalse, 0);
        allControls.add(button);
    }

    fAllControls = allControls.toArray(new Control[allControls.size()]);

    PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, ICHelpContextIds.SPELLING_CONFIGURATION_BLOCK);
    return composite;
}

From source file:org.eclipse.dltk.mod.ui.preferences.NewScriptProjectPreferencePage.java

License:Open Source License

protected Control createContents(Composite parent) {
    initializeDialogUnits(parent);//from w w w. j a va2  s .co  m

    Composite result = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.marginWidth = 0;
    layout.verticalSpacing = convertVerticalDLUsToPixels(10);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    layout.numColumns = 2;
    result.setLayout(layout);

    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    gd.horizontalSpan = 2;

    Group sourceFolderGroup = new Group(result, SWT.NONE);
    layout = new GridLayout();
    layout.numColumns = 2;
    sourceFolderGroup.setLayout(layout);
    sourceFolderGroup.setLayoutData(gd);
    sourceFolderGroup.setText(PreferencesMessages.NewScriptProjectPreferencePage_sourcefolder_label);

    int indent = 0;

    fProjectAsSourceFolder = addRadioButton(sourceFolderGroup,
            PreferencesMessages.NewScriptProjectPreferencePage_sourcefolder_project, SRCBIN_FOLDERS_IN_NEWPROJ,
            IPreferenceStore.FALSE, indent);
    fProjectAsSourceFolder.addSelectionListener(fSelectionListener);

    fFoldersAsSourceFolder = addRadioButton(sourceFolderGroup,
            PreferencesMessages.NewScriptProjectPreferencePage_sourcefolder_folder, SRCBIN_FOLDERS_IN_NEWPROJ,
            IPreferenceStore.TRUE, indent);
    fFoldersAsSourceFolder.addSelectionListener(fSelectionListener);

    indent = convertWidthInCharsToPixels(4);

    fSrcFolderNameLabel = new Label(sourceFolderGroup, SWT.NONE);
    fSrcFolderNameLabel.setText(PreferencesMessages.NewScriptProjectPreferencePage_folders_src);
    fSrcFolderNameText = addTextControl(sourceFolderGroup, fSrcFolderNameLabel, SRC_SRCNAME, indent);
    fSrcFolderNameText.addModifyListener(fModifyListener);

    //      String[] InterpreterEnvironmentNames= getInterpreterEnvironmentNames();
    //      if (InterpreterEnvironmentNames.length > 0) {
    //         Label InterpreterEnvironmentSelectionLabel= new Label(result, SWT.NONE);
    //         InterpreterEnvironmentSelectionLabel.setText(PreferencesMessages.NewScriptProjectPreferencePage_InterpreterEnvironmentlibrary_label); 
    //         InterpreterEnvironmentSelectionLabel.setLayoutData(new GridData());
    //      
    //         int index= getPreferenceStore().getInt(CLASSPATH_InterpreterEnvironmentLIBRARY_INDEX);
    //         fInterpreterEnvironmentCombo= new Combo(result, SWT.READ_ONLY);
    //         fInterpreterEnvironmentCombo.setItems(InterpreterEnvironmentNames);
    //         fInterpreterEnvironmentCombo.select(index);
    //         fInterpreterEnvironmentCombo.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
    //      }

    validateFolders();

    Dialog.applyDialogFont(result);
    return result;
}

From source file:org.eclipse.dltk.ui.preferences.NewScriptProjectPreferencePage.java

License:Open Source License

protected Control createContents(Composite parent) {
    initializeDialogUnits(parent);// w w w  .j av a2  s .c  om

    Composite result = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.marginWidth = 0;
    layout.verticalSpacing = convertVerticalDLUsToPixels(10);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    layout.numColumns = 2;
    result.setLayout(layout);

    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    gd.horizontalSpan = 2;

    Group sourceFolderGroup = new Group(result, SWT.NONE);
    layout = new GridLayout();
    layout.numColumns = 2;
    sourceFolderGroup.setLayout(layout);
    sourceFolderGroup.setLayoutData(gd);
    sourceFolderGroup.setText(PreferencesMessages.NewScriptProjectPreferencePage_sourcefolder_label);

    int indent = 0;

    fProjectAsSourceFolder = addRadioButton(sourceFolderGroup,
            PreferencesMessages.NewScriptProjectPreferencePage_sourcefolder_project, SRCBIN_FOLDERS_IN_NEWPROJ,
            IPreferenceStore.FALSE, indent);
    fProjectAsSourceFolder.addSelectionListener(fSelectionListener);

    fFoldersAsSourceFolder = addRadioButton(sourceFolderGroup,
            PreferencesMessages.NewScriptProjectPreferencePage_sourcefolder_folder, SRCBIN_FOLDERS_IN_NEWPROJ,
            IPreferenceStore.TRUE, indent);
    fFoldersAsSourceFolder.addSelectionListener(fSelectionListener);

    indent = convertWidthInCharsToPixels(4);

    fSrcFolderNameLabel = new Label(sourceFolderGroup, SWT.NONE);
    fSrcFolderNameLabel.setText(PreferencesMessages.NewScriptProjectPreferencePage_folders_src);
    fSrcFolderNameText = addTextControl(sourceFolderGroup, fSrcFolderNameLabel, SRC_SRCNAME, indent);
    fSrcFolderNameText.addModifyListener(fModifyListener);

    // String[] InterpreterEnvironmentNames=
    // getInterpreterEnvironmentNames();
    // if (InterpreterEnvironmentNames.length > 0) {
    // Label InterpreterEnvironmentSelectionLabel= new Label(result,
    // SWT.NONE);
    // InterpreterEnvironmentSelectionLabel.setText(PreferencesMessages.NewScriptProjectPreferencePage_InterpreterEnvironmentlibrary_label);
    // InterpreterEnvironmentSelectionLabel.setLayoutData(new GridData());
    //      
    // int index=
    // getPreferenceStore().getInt(CLASSPATH_InterpreterEnvironmentLIBRARY_INDEX);
    // fInterpreterEnvironmentCombo= new Combo(result, SWT.READ_ONLY);
    // fInterpreterEnvironmentCombo.setItems(InterpreterEnvironmentNames);
    // fInterpreterEnvironmentCombo.select(index);
    // fInterpreterEnvironmentCombo.setLayoutData(new
    // GridData(GridData.HORIZONTAL_ALIGN_FILL));
    // }

    validateFolders();

    Dialog.applyDialogFont(result);
    return result;
}

From source file:org.eclipse.jdt.text.tests.performance.TextPerformanceTestCase.java

License:Open Source License

protected void setUp() throws Exception {
    super.setUp();

    EditorTestHelper.forceFocus();/*from   ww w . j  av a2  s .  c o  m*/
    EditorsUI.getPreferenceStore().putValue(SpellingService.PREFERENCE_SPELLING_ENABLED,
            IPreferenceStore.FALSE);

    if (DEBUG)
        System.out.println(DATE_FORMAT.format(new Date()) + ": " + getClass().getName() + "." + getName());
}

From source file:org.eclipse.jdt.text.tests.performance.TextPerformanceTestCase2.java

License:Open Source License

protected void setUp() throws Exception {
    super.setUp();
    EditorsUI.getPreferenceStore().putValue(SpellingService.PREFERENCE_SPELLING_ENABLED,
            IPreferenceStore.FALSE);
}

From source file:org.eclipse.osee.framework.ui.skynet.OseePreferencePage.java

License:Open Source License

@Override
public boolean performOk() {
    getPreferenceStore().setValue(CorePreferences.INETADDRESS_KEY, "");
    for (InetAddress address : networkButtons.keySet()) {
        if (networkButtons.get(address).getSelection()) {
            getPreferenceStore().setValue(CorePreferences.INETADDRESS_KEY, address.getHostAddress());
            break;
        }//from   w w  w .java 2 s  .c om
    }

    getPreferenceStore().setValue(HttpUrlBuilderClient.USE_CONNECTED_SERVER_URL_FOR_PERM_LINKS,
            connectedUrlCheckBox.getSelection());

    getPreferenceStore().putValue(PreferenceConstants.WORDWRAP_KEY,
            wordWrapChkBox.getSelection() ? IPreferenceStore.TRUE : IPreferenceStore.FALSE);

    return super.performOk();
}

From source file:org.eclipse.php.internal.ui.preferences.PHPProjectLayoutPreferencePage.java

License:Open Source License

protected Control createPreferenceContent(Composite parent) {
    initializeDialogUnits(parent);//w  w  w  .  jav  a 2s.  c o m

    Composite result = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.marginWidth = 0;
    layout.verticalSpacing = convertVerticalDLUsToPixels(10);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    layout.numColumns = 2;
    result.setLayout(layout);

    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    gd.horizontalSpan = 2;

    Group sourceFolderGroup = new Group(result, SWT.NONE);
    layout = new GridLayout();
    layout.numColumns = 2;
    sourceFolderGroup.setLayout(layout);
    sourceFolderGroup.setLayoutData(gd);
    sourceFolderGroup.setText(PreferencesMessages.NewPHPProjectPreferencePage_sourcefolder_label);

    int indent = 0;

    fProjectAsSourceFolder = addRadioButton(sourceFolderGroup,
            PreferencesMessages.NewPHPProjectPreferencePage_sourcefolder_project, SRCBIN_FOLDERS_IN_NEWPROJ,
            IPreferenceStore.FALSE, indent);
    fProjectAsSourceFolder.addSelectionListener(fSelectionListener);

    fFoldersAsSourceFolder = addRadioButton(sourceFolderGroup,
            PreferencesMessages.NewPHPProjectPreferencePage_sourcefolder_folder, SRCBIN_FOLDERS_IN_NEWPROJ,
            IPreferenceStore.TRUE, indent);
    fFoldersAsSourceFolder.addSelectionListener(fSelectionListener);

    indent = convertWidthInCharsToPixels(4);

    fSrcFolderNameLabel = new Label(sourceFolderGroup, SWT.NONE);
    fSrcFolderNameLabel.setText(PreferencesMessages.NewPHPProjectPreferencePage_folders_src);
    fSrcFolderNameText = addTextControl(sourceFolderGroup, fSrcFolderNameLabel, SRCBIN_SRCNAME, indent);
    fSrcFolderNameText.addModifyListener(fModifyListener);

    fBinFolderNameLabel = new Label(sourceFolderGroup, SWT.NONE);
    fBinFolderNameLabel.setText(PreferencesMessages.NewPHPProjectPreferencePage_folders_public);
    fBinFolderNameText = addTextControl(sourceFolderGroup, fBinFolderNameLabel, SRCBIN_BINNAME, indent);
    fBinFolderNameText.addModifyListener(fModifyListener);

    validateFolders();

    return result;
}

From source file:org.eclipse.wst.jsdt.internal.ui.preferences.NewJavaProjectPreferencePage.java

License:Open Source License

protected Control createContents(Composite parent) {
    initializeDialogUnits(parent);/*from w  w  w. j  a va 2s  . c  o  m*/

    Composite result = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);
    layout.marginWidth = 0;
    layout.verticalSpacing = convertVerticalDLUsToPixels(10);
    layout.horizontalSpacing = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_SPACING);
    layout.numColumns = 2;
    result.setLayout(layout);

    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    gd.horizontalSpan = 2;

    Group sourceFolderGroup = new Group(result, SWT.NONE);
    layout = new GridLayout();
    layout.numColumns = 2;
    sourceFolderGroup.setLayout(layout);
    sourceFolderGroup.setLayoutData(gd);
    sourceFolderGroup.setText(PreferencesMessages.NewJavaProjectPreferencePage_sourcefolder_label);

    int indent = 0;

    fProjectAsSourceFolder = addRadioButton(sourceFolderGroup,
            PreferencesMessages.NewJavaProjectPreferencePage_sourcefolder_project, SRCBIN_FOLDERS_IN_NEWPROJ,
            IPreferenceStore.FALSE, indent);
    fProjectAsSourceFolder.addSelectionListener(fSelectionListener);

    fFoldersAsSourceFolder = addRadioButton(sourceFolderGroup,
            PreferencesMessages.NewJavaProjectPreferencePage_sourcefolder_folder, SRCBIN_FOLDERS_IN_NEWPROJ,
            IPreferenceStore.TRUE, indent);
    fFoldersAsSourceFolder.addSelectionListener(fSelectionListener);

    indent = convertWidthInCharsToPixels(4);

    fSrcFolderNameLabel = new Label(sourceFolderGroup, SWT.NONE);
    fSrcFolderNameLabel.setText(PreferencesMessages.NewJavaProjectPreferencePage_folders_src);
    fSrcFolderNameText = addTextControl(sourceFolderGroup, fSrcFolderNameLabel, SRCBIN_SRCNAME, indent);
    fSrcFolderNameText.addModifyListener(fModifyListener);

    //fBinFolderNameLabel= new Label(sourceFolderGroup, SWT.NONE);
    //fBinFolderNameLabel.setText(PreferencesMessages.NewJavaProjectPreferencePage_folders_bin); 
    //fBinFolderNameText= addTextControl(sourceFolderGroup, fBinFolderNameLabel, SRCBIN_BINNAME, indent); 
    //fBinFolderNameText.addModifyListener(fModifyListener);

    //      String[] jreNames= getJRENames();
    //      if (jreNames.length > 0) {
    //         Label jreSelectionLabel= new Label(result, SWT.NONE);
    //         jreSelectionLabel.setText(PreferencesMessages.NewJavaProjectPreferencePage_jrelibrary_label); 
    //         jreSelectionLabel.setLayoutData(new GridData());
    //      
    //         int index= getPreferenceStore().getInt(CLASSPATH_JRELIBRARY_INDEX);
    //         fJRECombo= new Combo(result, SWT.READ_ONLY);
    //         fJRECombo.setItems(jreNames);
    //         fJRECombo.select(index);
    //         fJRECombo.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
    //      }

    validateFolders();

    Dialog.applyDialogFont(result);
    return result;
}

From source file:org.eclipselabs.nullness.ui.NullnessConfigurationBlock.java

License:Open Source License

@Override
protected Control createContents(Composite parent) {

    Composite fieldEditorParent = new Composite(parent, SWT.NULL);
    GridLayout layout = new GridLayout();
    layout.numColumns = 1;// w  ww  .  ja va 2s  .  c o m
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    fieldEditorParent.setLayout(layout);
    fieldEditorParent.setFont(parent.getFont());

    addCheckBox(fieldEditorParent, "Generate runtime assertions", NullnessConfigurationBlock.KEY_ACTIVE_BOOLEAN,
            new String[] { IPreferenceStore.TRUE, IPreferenceStore.FALSE }, 0);

    Dialog.applyDialogFont(fieldEditorParent);
    return fieldEditorParent;
}

From source file:org.jboss.tools.browsersim.eclipse.Activator.java

License:Open Source License

/**
 * Sets Eclipse preferences values from o.j.t.vpe.browsersim to o.j.t.browsersim preferences store 
 */// w  w  w  .  j  a v  a  2 s .co  m
private void backportEclipsePreferences() {
    String oldJvmAutomatically = Platform.getPreferencesService().getString(OLD_PLUGIN_ID,
            OLD_BROWSERSIM_JVM_AUTOMATICALLY, null, null);
    if (oldJvmAutomatically != null) {
        String oldGTK2 = Platform.getPreferencesService().getString(OLD_PLUGIN_ID, OLD_BROWSERSIM_GTK_2,
                PreferencesUtil.requiresGTK3() ? IPreferenceStore.FALSE : IPreferenceStore.TRUE, null);
        String oldJvmId = Platform.getPreferencesService().getString(OLD_PLUGIN_ID, OLD_BROWSERSIM_JVM_ID, "", //$NON-NLS-1$
                null);

        IPreferenceStore store = getPreferenceStore();
        store.setValue(BrowserSimPreferencesPage.BROWSERSIM_GTK_2, oldGTK2);
        store.setValue(BrowserSimPreferencesPage.BROWSERSIM_JVM_AUTOMATICALLY, oldJvmAutomatically);
        store.setValue(BrowserSimPreferencesPage.BROWSERSIM_JVM_ID, oldJvmId);
    }
}