1 11 12 package org.eclipse.jdt.internal.ui.refactoring; 13 14 import org.eclipse.jface.preference.IPreferenceStore; 15 16 import org.eclipse.jdt.internal.ui.JavaPlugin; 17 18 import org.eclipse.jdt.ui.PreferenceConstants; 19 20 public class RefactoringSavePreferences { 21 22 public static final String PREF_SAVE_ALL_EDITORS= PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS; 23 24 public static boolean getSaveAllEditors() { 25 IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore(); 26 return store.getBoolean(PREF_SAVE_ALL_EDITORS); 27 } 28 29 public static void setSaveAllEditors(boolean save) { 30 IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore(); 31 store.setValue(PREF_SAVE_ALL_EDITORS, save); 32 } 33 } 34 | Popular Tags |