1 /*******************************************************************************
2 * Copyright (c) 2000, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
12 package org.eclipse.jdt.internal.ui.refactoring;
14 import org.eclipse.jface.preference.IPreferenceStore;
16 import org.eclipse.jdt.ui.PreferenceConstants;
18 import org.eclipse.jdt.internal.ui.JavaPlugin;
20 public class RefactoringSavePreferences {
22 public static final String PREF_SAVE_ALL_EDITORS= PreferenceConstants.REFACTOR_SAVE_ALL_EDITORS;
24 public static boolean getSaveAllEditors() {
25 IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore();
26 return store.getBoolean(PREF_SAVE_ALL_EDITORS);
29 public static void setSaveAllEditors(boolean save) {
30 IPreferenceStore store= JavaPlugin.getDefault().getPreferenceStore();
31 store.setValue(PREF_SAVE_ALL_EDITORS, save);