diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:23:09 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 13:24:09 +0200 |
commit | c7da892cb23d50d4d85746c9a0b6b14bf570989d (patch) | |
tree | e7136073f386d6156f51766c498c52c30c8df85f /plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/PreferenceInitializer.java | |
download | eclipse-poky-kepler-c7da892cb23d50d4d85746c9a0b6b14bf570989d.tar.gz |
initial commit for Enea Linux 4.0daisy
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/PreferenceInitializer.java')
-rw-r--r-- | plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/PreferenceInitializer.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/PreferenceInitializer.java b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/PreferenceInitializer.java new file mode 100644 index 0000000..40f37d0 --- /dev/null +++ b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/PreferenceInitializer.java | |||
@@ -0,0 +1,44 @@ | |||
1 | /******************************************************************************* | ||
2 | * Copyright (c) 2010 Intel Corporation. | ||
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 | * Intel - initial API and implementation | ||
10 | *******************************************************************************/ | ||
11 | package org.yocto.sdk.ide.preferences; | ||
12 | |||
13 | import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; | ||
14 | import org.eclipse.jface.preference.IPreferenceStore; | ||
15 | |||
16 | import org.yocto.sdk.ide.YoctoSDKPlugin; | ||
17 | |||
18 | import static org.yocto.sdk.ide.preferences.PreferenceConstants.*; | ||
19 | |||
20 | /** | ||
21 | * Class used to initialize default preference values. | ||
22 | */ | ||
23 | public class PreferenceInitializer extends AbstractPreferenceInitializer { | ||
24 | /* | ||
25 | * (non-Javadoc) | ||
26 | * | ||
27 | * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences() | ||
28 | */ | ||
29 | public void initializeDefaultPreferences() { | ||
30 | IPreferenceStore store = YoctoSDKPlugin.getDefault().getPreferenceStore(); | ||
31 | store.setDefault(TOOLCHAIN_ROOT, ""); | ||
32 | store.setDefault(SDK_MODE, true); | ||
33 | store.setDefault(TARGET_MODE, false); | ||
34 | store.setDefault(TARGET_ARCH_INDEX, -1); | ||
35 | store.setDefault(IP_ADDR, ""); | ||
36 | store.setDefault(QEMU_KERNEL, ""); | ||
37 | store.setDefault(QEMU_OPTION, ""); | ||
38 | store.setDefault(SYSROOT, ""); | ||
39 | store.setDefault(TOOLCHAIN_TRIPLET, ""); | ||
40 | store.setDefault(PROFILES, "\"" + STANDARD_PROFILE_NAME + "\""); | ||
41 | store.setDefault(SELECTED_PROFILE, STANDARD_PROFILE_NAME); | ||
42 | } | ||
43 | |||
44 | } | ||