/** * 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); } } } }
/** * 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 (page instanceof PreferencePage) { IPreferenceStore store = ((PreferencePage) page).getPreferenceStore(); if (store != null && store.needsSaving() && store instanceof IPersistentPreferenceStore) {
if (page instanceof PreferencePage) { IPreferenceStore store = ((PreferencePage) page).getPreferenceStore(); if (store != null && store.needsSaving() && store instanceof IPersistentPreferenceStore) {
if (page instanceof PreferencePage) { IPreferenceStore store = ((PreferencePage) page).getPreferenceStore(); if (store != null && store.needsSaving() && store instanceof IPersistentPreferenceStore) {