org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/core/deploy/PreferenceInitializer.java
equal
deleted
inserted
replaced
1 /** |
|
2 * Copyright (c) 2009 Symbian Foundation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Symbian Foundation - initial contribution. |
|
11 * Contributors: |
|
12 * Description: |
|
13 * Overview: |
|
14 * Details: |
|
15 * Platforms/Drives/Compatibility: |
|
16 * Assumptions/Requirement/Pre-requisites: |
|
17 * Failures and causes: |
|
18 */ |
|
19 |
|
20 package org.symbian.tools.wrttools.core.deploy; |
|
21 |
|
22 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; |
|
23 import org.eclipse.jface.dialogs.MessageDialogWithToggle; |
|
24 import org.eclipse.jface.preference.IPreferenceStore; |
|
25 import org.symbian.tools.wrttools.Activator; |
|
26 |
|
27 /** |
|
28 * Class used to initialize default preference values. |
|
29 */ |
|
30 public class PreferenceInitializer extends AbstractPreferenceInitializer { |
|
31 |
|
32 /* |
|
33 * (non-Javadoc) |
|
34 * |
|
35 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences() |
|
36 */ |
|
37 public void initializeDefaultPreferences() { |
|
38 IPreferenceStore store = Activator.getDefault().getPreferenceStore(); |
|
39 |
|
40 store.setDefault(PreferenceConstants.PACKAGE_WITH_ERRORS, MessageDialogWithToggle.PROMPT); |
|
41 } |
|
42 |
|
43 } |
|