Commit | Line | Data |
---|---|---|
abfad0aa FC |
1 | /*******************************************************************************\r |
2 | * Copyright (c) 2010 Ericsson\r | |
3 | * \r | |
4 | * All rights reserved. This program and the accompanying materials are\r | |
5 | * made available under the terms of the Eclipse Public License v1.0 which\r | |
6 | * accompanies this distribution, and is available at\r | |
7 | * http://www.eclipse.org/legal/epl-v10.html\r | |
8 | * \r | |
9 | * Contributors:\r | |
10 | * Patrick Tasse - Initial API and implementation\r | |
11 | *******************************************************************************/\r | |
12 | \r | |
13 | package org.eclipse.linuxtools.tmf.ui;\r | |
14 | \r | |
15 | import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;\r | |
16 | import org.eclipse.core.runtime.preferences.IEclipsePreferences;\r | |
17 | import org.eclipse.core.runtime.preferences.InstanceScope;\r | |
18 | \r | |
19 | public class TmfUiPreferenceInitializer extends AbstractPreferenceInitializer {\r | |
20 | \r | |
21 | public static final String ACTIVE_PROJECT_PREFERENCE = "ACTIVE_PROJECT";\r | |
22 | public static final String ACTIVE_PROJECT_DEFAULT = "";\r | |
23 | \r | |
24 | public TmfUiPreferenceInitializer() {\r | |
25 | super();\r | |
26 | }\r | |
27 | \r | |
28 | @Override\r | |
29 | public void initializeDefaultPreferences() {\r | |
30 | IEclipsePreferences node = new InstanceScope().getNode(TmfUiPlugin.PLUGIN_ID);\r | |
31 | node.put(ACTIVE_PROJECT_PREFERENCE, ACTIVE_PROJECT_DEFAULT);\r | |
32 | }\r | |
33 | \r | |
34 | }\r |