source: rtems-eclipse-plug-in/org.rtems.cdt/src/org/rtems/cdt/preferences/PreferenceInitializer.java @ 6740c53

Last change on this file since 6740c53 was 6740c53, checked in by Sebastian Huber <sebastian.huber@…>, on 12/04/08 at 14:53:45

Initial commit.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 * Copyright (c) 2008 Embedded Brains GmbH and others.
3 *
4 *   Embedded Brains GmbH
5 *   Obere Lagerstr. 30
6 *   D-82178 Puchheim
7 *   Germany
8 *   rtems@embedded-brains.de
9 *
10 * All rights reserved.  This program and the accompanying materials are made
11 * available under the terms of the Eclipse Public License Version 1.0 ("EPL")
12 * which accompanies this distribution and is available at
13 *
14 *   http://www.eclipse.org/legal/epl-v10.html
15 *
16 * For purposes of the EPL, "Program" will mean the Content.
17 *
18 * Contributors:
19 *
20 *   Sebastian Huber (Embedded Brains GmbH) - Initial API and implementation.
21 */
22
23package org.rtems.cdt.preferences;
24
25import org.eclipse.core.runtime.Platform;
26import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
27import org.eclipse.jface.preference.IPreferenceStore;
28import org.rtems.cdt.Activator;
29import org.rtems.cdt.Constants;
30
31public class PreferenceInitializer extends AbstractPreferenceInitializer {
32        public void initializeDefaultPreferences() {
33                IPreferenceStore store = Activator.getDefault().getPreferenceStore();
34                store.setDefault( Constants.BASE_PATH_KEY, Constants.DEFAULT_BASE_PATH);
35                store.setDefault( Constants.BSP_PATH_KEY, Constants.DEFAULT_BSP_PATH);
36                if (Platform.getOS().equals( Platform.OS_WIN32)) {
37                        store.setDefault( Constants.CYGWIN_PATH_KEY, Constants.DEFAULT_CYGWIN_PATH);
38                        store.setDefault( Constants.MINGW_PATH_KEY, Constants.DEFAULT_MINGW_PATH);
39                        store.setDefault( Constants.MSYS_PATH_KEY, Constants.DEFAULT_MSYS_PATH);
40                }
41        }
42}
Note: See TracBrowser for help on using the repository browser.