@Override public boolean needsSaving() { return fStore.needsSaving(); }
public boolean needsSaving() { return fStore.needsSaving(); }
public boolean needsSaving() { return fStore.needsSaving(); }
public boolean needsSaving() { return fStore.needsSaving(); }
@Override public boolean needsSaving() { return fStore.needsSaving(); }
@Override public boolean needsSaving() { return fStore.needsSaving(); }
@Override public boolean needsSaving() { return fStore.needsSaving(); }
@Override public boolean needsSaving() { return fStore.needsSaving(); }
public boolean needsSaving() { return delegate.needsSaving(); }
/** * Stores the Pear filename in the preference store. * * @param filename the filename */ protected void saveDestinationValue(final String filename) { fPreferenceStore.setValue(PEAR_FILE, filename); fPreferenceStore.needsSaving(); }
@Override public boolean performOk() { Iterator<String> iter = fWorkingValues.keySet().iterator(); IPreferenceStore store = getPreferenceStore(); while (iter.hasNext()) { String key = iter.next(); store.putValue(key, fWorkingValues.get(key)); } if (store.needsSaving()) { // any AntModels listen for changes to the "PROBLEM" pref // this is so that the models do not update for each and every pref modification store.putValue(AntEditorPreferenceConstants.PROBLEM, "changed"); //$NON-NLS-1$ // ensure to clear as there may not be any models open currently store.setToDefault(AntEditorPreferenceConstants.PROBLEM); } return super.performOk(); }
public void save() { if (store.needsSaving() && store instanceof IPersistentPreferenceStore) { try { ((IPersistentPreferenceStore)store).save(); } catch (IOException e) { Activator.logError(Activator.getResourceString("easyshell.message.error.store.save"), e); } } }
/** * Save the values specified in the pages. * <p> * The default implementation of this framework method saves all * pages of type <code>PreferencePage</code> (if their store needs saving * and is a <code>PreferenceStore</code>). * </p> * <p> * Subclasses may override. * </p> */ protected void handleSave() { // Save now in case tbe workbench does not shutdown cleanly for (int i = 0; i < pages.length; i++) { PreferencePage page = pages[i]; IPreferenceStore store = page.getPreferenceStore(); if (store != null && store.needsSaving() && store instanceof IPersistentPreferenceStore) { try { ((IPersistentPreferenceStore) store).save(); } catch (IOException e) { Utils.handle(e); } } } }
@Override public boolean performOk() { if (idePreferenceStore != null && idePreferenceStore.needsSaving() && idePreferenceStore instanceof IPersistentPreferenceStore) { try { ((IPersistentPreferenceStore) idePreferenceStore).save(); } catch (IOException e) { String message = JFaceResources.format("PreferenceDialog.saveErrorMessage", getTitle(), //$NON-NLS-1$ e.getMessage()); Policy.getStatusHandler().show(new Status(IStatus.ERROR, Policy.JFACE, message, e), JFaceResources.getString("PreferenceDialog.saveErrorTitle")); //$NON-NLS-1$ } } return super.performOk(); }
/** * Save the values specified in the pages. * <p> * The default implementation of this framework method saves all * pages of type <code>PreferencePage</code> (if their store needs saving * and is a <code>PreferenceStore</code>). * </p> * <p> * Subclasses may override. * </p> */ protected void handleSave() { // Save now in case tbe workbench does not shutdown cleanly for (int i = 0; i < pages.length; i++) { PreferencePage page = pages[i]; IPreferenceStore store = page.getPreferenceStore(); if (store != null && store.needsSaving() && store instanceof IPersistentPreferenceStore) { try { ((IPersistentPreferenceStore) store).save(); } catch (IOException e) { Utils.handle(e); } } } }
if (store != null && store.needsSaving() && store instanceof IPersistentPreferenceStore) { try {
if (store != null && store.needsSaving() && store instanceof IPersistentPreferenceStore) { try {
if (store != null && store.needsSaving() && store instanceof IPersistentPreferenceStore) { try {
/** * OK was clicked. Store the preferences to the plugin store * * @return whether it is okay to close the preference page */ public boolean performOk() { IPreferenceStore store = getPreferenceStore(); final boolean okToClose = performOk(store); if (store.needsSaving()) { try { ((IPersistentPreferenceStore)store).save(); Activator.broadcastPropertyChange(new PropertyChangeEvent(this, Activator.DECORATORS_CHANGED, null, null)); } catch (IOException e) { Activator.handleError(e.getMessage(), e, true); } } return okToClose; }