View Javadoc

1   /*
2    * This file is a part of CAST project.
3    * (c) Copyright 2007, AGH University of Science & Technology
4    * https://caribou.iisg.agh.edu.pl/trac/cast
5    *
6    * Licensed under the Eclipse Public License, Version 1.0 (the "License").
7    * You may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    * http://www.eclipse.org/legal/epl-v10.html
10   */
11  /*
12   * File: PreferenceInitializer.java
13   * Created: 2007-00-00
14   * Author: entrop
15   * $Id: PreferenceInitializer.java 3266 2009-08-27 15:28:45Z tmilos $
16   */
17  
18  package pl.edu.agh.cast.preferences;
19  
20  import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
21  import org.eclipse.core.runtime.preferences.DefaultScope;
22  import org.osgi.service.prefs.Preferences;
23  
24  import pl.edu.agh.cast.Activator;
25  import pl.edu.agh.cast.project.UserPreferences;
26  
27  /**
28   * Class used to aid in default cast core plugin preference value initialization.
29   *
30   * @author AGH CAST Team
31   */
32  public final class PreferenceInitializer extends AbstractPreferenceInitializer {
33  
34  	/**
35  	 * {@inheritDoc}
36  	 *
37  	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
38  	 */
39  	@Override
40  	public void initializeDefaultPreferences() {
41  		Preferences pluginNode = new DefaultScope().getNode(Activator.PLUGIN_ID);
42  
43  		pluginNode.putBoolean(UserPreferences.Pref.SHOW_PROJECT_STARTUP_DIALOG.getValue(), true);
44  	}
45  
46  }