KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > preferences > PreferenceInitializer


1 /*******************************************************************************
2  * Copyright (c) 2005, 2007 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
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.pde.internal.ui.preferences;
12
13 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
14 import org.eclipse.jface.preference.IPreferenceStore;
15 import org.eclipse.pde.internal.ui.IPreferenceConstants;
16 import org.eclipse.pde.internal.ui.PDEPlugin;
17 import org.eclipse.pde.internal.ui.editor.text.ColorManager;
18 import org.eclipse.pde.internal.ui.launcher.OSGiFrameworkManager;
19
20 public class PreferenceInitializer extends AbstractPreferenceInitializer {
21
22     /* (non-Javadoc)
23      * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
24      */

25     public void initializeDefaultPreferences() {
26         IPreferenceStore store = PDEPlugin.getDefault().getPreferenceStore();
27         ColorManager.initializeDefaults(store);
28         store.setDefault(IPreferenceConstants.PROP_SHOW_OBJECTS, IPreferenceConstants.VALUE_USE_IDS);
29         store.setDefault(IPreferenceConstants.EDITOR_FOLDING_ENABLED, false);
30         store.setDefault(IPreferenceConstants.DEFAULT_OSGI_FRAMEOWRK, OSGiFrameworkManager.DEFAULT_FRAMEWORK);
31     }
32
33 }
34
Popular Tags