01: /*******************************************************************************
02: * Copyright (c) 2005, 2007 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.pde.internal.ui.preferences;
11:
12: import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
13: import org.eclipse.jface.preference.IPreferenceStore;
14: import org.eclipse.pde.internal.ui.IPreferenceConstants;
15: import org.eclipse.pde.internal.ui.PDEPlugin;
16: import org.eclipse.pde.internal.ui.editor.text.ColorManager;
17: import org.eclipse.pde.internal.ui.launcher.OSGiFrameworkManager;
18:
19: public class PreferenceInitializer extends
20: AbstractPreferenceInitializer {
21:
22: /* (non-Javadoc)
23: * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
24: */
25: public void initializeDefaultPreferences() {
26: IPreferenceStore store = PDEPlugin.getDefault()
27: .getPreferenceStore();
28: ColorManager.initializeDefaults(store);
29: store.setDefault(IPreferenceConstants.PROP_SHOW_OBJECTS,
30: IPreferenceConstants.VALUE_USE_IDS);
31: store.setDefault(IPreferenceConstants.EDITOR_FOLDING_ENABLED,
32: false);
33: store.setDefault(IPreferenceConstants.DEFAULT_OSGI_FRAMEOWRK,
34: OSGiFrameworkManager.DEFAULT_FRAMEWORK);
35: }
36:
37: }
|