~ubuntu-branches/ubuntu/utopic/eclipse-eclox/utopic

« back to all changes in this revision

Viewing changes to eclox.core/src/eclox/core/PreferencesInitializer.java

  • Committer: Package Import Robot
  • Author(s): Graham Inggs
  • Date: 2013-07-07 20:33:10 UTC
  • Revision ID: package-import@ubuntu.com-20130707203310-a44yw80gqtc2s9ob
Tags: upstream-0.10.0
ImportĀ upstreamĀ versionĀ 0.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
 * Copyright (C) 2003-2006, 2013, Guillaume Brocker
 
3
 * 
 
4
 * All rights reserved. This program and the accompanying materials
 
5
 * are made available under the terms of the Eclipse Public License v1.0
 
6
 * which accompanies this distribution, and is available at
 
7
 * http://www.eclipse.org/legal/epl-v10.html
 
8
 *
 
9
 * Contributors:
 
10
 *     Guillaume Brocker - Initial API and implementation
 
11
 *
 
12
 ******************************************************************************/ 
 
13
 
 
14
package eclox.core;
 
15
 
 
16
import org.eclipse.core.runtime.Preferences;
 
17
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
 
18
 
 
19
import eclox.core.Plugin;
 
20
import eclox.core.doxygen.DefaultDoxygen;
 
21
 
 
22
 
 
23
/**
 
24
 * Implements the prefenrence initializer for the plugin.
 
25
 * 
 
26
 * @author gbrocker
 
27
 */
 
28
public class PreferencesInitializer extends AbstractPreferenceInitializer {
 
29
 
 
30
        /**
 
31
         * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
 
32
         */
 
33
        public void initializeDefaultPreferences() {
 
34
                Preferences     preferences = Plugin.getDefault().getPluginPreferences();
 
35
                
 
36
                preferences.setDefault( IPreferences.DEFAULT_DOXYGEN, new DefaultDoxygen().getIdentifier() );
 
37
                preferences.setDefault( IPreferences.CUSTOM_DOXYGENS, "" );
 
38
        }
 
39
 
 
40
}