@Override public boolean performOk() { boolean auto = fAuto.getSelection(); boolean currentValue = getPreferenceStore().getBoolean(IDebugPreferenceConstants.PREF_DYNAMIC_LOAD_MEM); if (auto != currentValue) getPreferenceStore().setValue(IDebugPreferenceConstants.PREF_DYNAMIC_LOAD_MEM, auto); fPageSize.store(); fPreBufferSize.store(); fPostBufferSize.store(); return super.performOk(); }
public boolean performOk() { backlogEditor.store(); bufferEditor.store(); readWaitEditor.store(); filterExtensionsEditor.store(); encodingComboEditor.store(); colorFieldEditor.store(); // debug //RGB color = colorFieldEditor.getColorSelector().getColorValue(); fontTypeEditor.store(); doGetPreferenceStore().setValue(ILogViewerConstants.PREF_WORD_WRAP, wordWrap.getSelection()); doGetPreferenceStore().setValue(ILogViewerConstants.PREF_SHOW_WHEN_UPDATED, showWhenUpdated.getSelection()); doGetPreferenceStore().setValue(ILogViewerConstants.PREF_SHOW_TOP_OF_FILE, showTopOfFile.getSelection()); return super.performOk(); }
@Override public boolean performOk() { IPreferenceStore store = getPreferenceStore(); getAPIPreferenceStore().setValue(IWorkbenchPreferenceConstants.SHOW_MULTIPLE_EDITOR_TABS, showMultipleEditorTabs.getSelection()); getAPIPreferenceStore().setValue(IWorkbenchPreferenceConstants.DISABLE_OPEN_EDITOR_IN_PLACE, !allowInplaceEditor.getSelection()); store.setValue(IPreferenceConstants.USE_IPERSISTABLE_EDITORS, useIPersistableEditor.getSelection()); getAPIPreferenceStore().setValue(IWorkbenchPreferenceConstants.PROMPT_WHEN_SAVEABLE_STILL_OPEN, promptWhenStillOpenEditor.getSelection()); // store the reuse editors setting store.setValue(IPreferenceConstants.REUSE_EDITORS_BOOLEAN, reuseEditors .getSelection()); reuseEditorsThreshold.store(); // store the recent files setting recentFilesEditor.store(); PrefUtil.savePrefs(); return super.performOk(); }