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

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

Introduction

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

Prototype

boolean getBoolean(String name);

Source Link

Document

Returns the current value of the boolean-valued preference with the given name.

Usage

From source file:com.nokia.s60tools.crashanalyser.ui.preferences.CrashAnalyserPreferences.java

License:Open Source License

private void getPrefsStoreValues() {
    IPreferenceStore store = CrashAnalyserPlugin.getCrashAnalyserPrefsStore();
    boolean listener = store.getBoolean(CrashAnalyserPreferenceConstants.TRACE_LISTENER);
    buttonListenTraceViewer.setSelection(listener);

    boolean epocwind = store.getBoolean(CrashAnalyserPreferenceConstants.EPOCWIND_LISTENER);
    buttonEpocwind.setSelection(epocwind);

    boolean showVisualizer = store.getBoolean(CrashAnalyserPreferenceConstants.SHOW_VISUALIZER);
    buttonShowVisualizer.setSelection(showVisualizer);
    buttonShowVisualizer.setEnabled(listener);
}

From source file:com.nokia.s60tools.crashanalyser.ui.preferences.CrashAnalyserPreferences.java

License:Open Source License

public static boolean traceListenerOn() {
    IPreferenceStore store = CrashAnalyserPlugin.getCrashAnalyserPrefsStore();
    return store.getBoolean(CrashAnalyserPreferenceConstants.TRACE_LISTENER);
}

From source file:com.nokia.s60tools.crashanalyser.ui.preferences.CrashAnalyserPreferences.java

License:Open Source License

public static boolean epocwindListenerOn() {
    IPreferenceStore store = CrashAnalyserPlugin.getCrashAnalyserPrefsStore();
    return store.getBoolean(CrashAnalyserPreferenceConstants.EPOCWIND_LISTENER);
}

From source file:com.nokia.s60tools.crashanalyser.ui.preferences.CrashAnalyserPreferences.java

License:Open Source License

public static boolean showVisualizer() {
    IPreferenceStore store = CrashAnalyserPlugin.getCrashAnalyserPrefsStore();
    return store.getBoolean(CrashAnalyserPreferenceConstants.SHOW_VISUALIZER);
}

From source file:com.nokia.s60tools.imaker.internal.preferences.ImageFlasherPreferencePage.java

License:Open Source License

private void initializeValues() {
    IPreferenceStore store = doGetPreferenceStore();
    String str = store.getString(PreferenceConstants.PREFERENCES_DIRECTORY);
    textPreferencesDirectory.setText(str);
    boolean show = store.getBoolean(PreferenceConstants.CONFML_SELECTION_DIALOG);
    checkConfml.setSelection(show);// w  ww.  j  a  va  2s .  c om
}

From source file:com.nokia.s60tools.memspy.preferences.MemSpyPreferences.java

License:Open Source License

/**
 * Gets SWMT category settings for this session.
 * @return SWMT category settings for this session
 *//*from w  w  w  .ja  va 2 s.c o m*/
public static int getSWMTCategorySetting() {

    IPreferenceStore store = MemSpyPlugin.getPrefsStore();

    boolean isProfileSelected = store
            .getBoolean(MemSpyPreferenceConstants.SWMT_CATEGORY_SETTING_PROFILE_SELECTED);
    int value;
    if (isProfileSelected) {
        value = getSWMTCategorySettingForProfile();
    } else {
        value = store.getInt(MemSpyPreferenceConstants.SWMT_CATEGORY_SETTINGS_CUSTOM);
    }
    return value;
}

From source file:com.nokia.s60tools.memspy.preferences.MemSpyPreferences.java

License:Open Source License

/**
 * Get if All Tracke Categories is selected.
 * @param <code>true</code> if All is selected <code>false</code> otherwise.
 *//*  w  w  w  . j  a  va2  s .com*/
public static boolean isProfileTrackedCategoriesSelected() {

    IPreferenceStore store = MemSpyPlugin.getPrefsStore();
    boolean isAllSelected = store.getBoolean(MemSpyPreferenceConstants.SWMT_CATEGORY_SETTING_PROFILE_SELECTED);
    return isAllSelected;

}

From source file:com.nokia.s60tools.memspy.preferences.MemSpyPreferences.java

License:Open Source License

/**
 * Gets the SWMT Heap Dump selection//from   w  w w .j a  v  a2s  .  com
 * @param <code>true</code> if Heap Dumps should receive with SWMT logging, <code>false</code> otherwise.
 */
public static boolean isSWMTHeapDumpSelected() {
    IPreferenceStore store = MemSpyPlugin.getPrefsStore();
    return store.getBoolean(MemSpyPreferenceConstants.SWMT_HEAP_DUMP_SELECTED);
}

From source file:com.nokia.s60tools.memspy.preferences.MemSpyPreferences.java

License:Open Source License

/**
 * Gets the user selection if S60 device is closed between cycles
 * @param <code>true</code> if S60 Device is about to close between cycles, <code>false</code> otherwise.
 *///from w  w  w  .j av a2 s .c om
public static boolean isCloseSymbianAgentBetweenCyclesSelected() {
    IPreferenceStore store = MemSpyPlugin.getPrefsStore();
    return store.getBoolean(MemSpyPreferenceConstants.CLOSE_BETWEEN_CYCLES);
}

From source file:com.nokia.s60tools.symbianfoundationtemplates.ui.wizards.s60.FolderSelectionControl.java

License:Open Source License

public FolderSelectionControl(Composite topLevel, Listener listener, String label) {
    this.topLevel = topLevel;

    // Folder selection
    new Label(topLevel, SWT.NONE).setText(label);
    folderText = new Combo(topLevel, SWT.BORDER);
    folderText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    MMPSourceUserIncPaths pathsFromMMP = new MMPSourceUserIncPaths();
    String[] paths = null;//from   w  w  w  .  j  av a 2  s  .  c o  m
    IPreferenceStore preferenceStore = SymbianFoundationTemplates.getDefault().getPreferenceStore();
    if (label.equals(Messages.getString("WizardPageSourceFolderLabel"))
            && preferenceStore.getBoolean(PreferenceConstants.OPENED_FROM_VIEW)) {
        paths = pathsFromMMP.getPreviousValues(MMPSourceUserIncPaths.ValueTypes.SRC_DIRS);
        if (paths != null) {
            folderText.setItems(paths);
            folderText.select(0);
        }
    } else if (label.equals(Messages.getString("WizardPageHeaderFolderLabel"))
            && preferenceStore.getBoolean(PreferenceConstants.OPENED_FROM_VIEW)) {
        paths = pathsFromMMP.getPreviousValues(MMPSourceUserIncPaths.ValueTypes.USERINC_DIRS);
        if (paths != null) {
            folderText.setItems(paths);
            folderText.select(0);
        }
    }
    folderText.addListener(SWT.Modify, listener);
    folderButton = new Button(topLevel, SWT.NONE);
    folderButton.setText(Messages.getString("FolderSelectionBrowseLabel")); //$NON-NLS-1$
    folderButton.addListener(SWT.Selection, this);
}