01: /*******************************************************************************
02: * Copyright (c) 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.examples.undo.preferences;
11:
12: import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
13: import org.eclipse.jface.preference.IPreferenceStore;
14:
15: import org.eclipse.ui.examples.undo.UndoPlugin;
16:
17: /**
18: * Class used to initialize default preference values.
19: */
20: public class PreferenceInitializer extends
21: AbstractPreferenceInitializer {
22:
23: /*
24: * (non-Javadoc)
25: *
26: * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
27: */
28: public void initializeDefaultPreferences() {
29: IPreferenceStore store = UndoPlugin.getDefault()
30: .getPreferenceStore();
31: store.setDefault(PreferenceConstants.PREF_CONFIRMUNDO, true);
32: store.setDefault(PreferenceConstants.PREF_UNDOLIMIT, 25);
33: store.setDefault(PreferenceConstants.PREF_SHOWDEBUG, false);
34:
35: }
36:
37: }
|