author | Chad Peckham <chad.peckham@nokia.com> |
Mon, 11 Oct 2010 16:03:33 -0500 | |
changeset 2150 | 64e9abb9ebeb |
parent 2149 | 97f77163e6d0 |
child 2152 | 816abb894472 |
permissions | -rw-r--r-- |
2149 | 1 |
/* |
2 |
* Copyright (c) 2010 Nokia Corporation 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 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: |
|
15 |
* Test the BldInfViewPathHelper class. |
|
16 |
* |
|
17 |
*/ |
|
18 |
package com.nokia.carbide.cdt.builder.test; |
|
19 |
||
20 |
import org.eclipse.ui.dialogs.PreferencesUtil; |
|
21 |
||
22 |
import com.nokia.cpp.internal.api.utils.ui.WorkbenchUtils; |
|
23 |
||
24 |
/** |
|
25 |
* Test class to simply load all the global Carbide preferences |
|
26 |
* |
|
27 |
*/ |
|
28 |
public class TestCreateGlobalPrefs extends BaseTest { |
|
29 |
||
30 |
private static final String[] carbidePrefIds = { "com.nokia.carbide.cpp.sdk.ui.preferences.BuildPlatformFilterPage", |
|
31 |
"com.nokia.carbide.cpp.internal.sdk.ui.SDKPreferencePage", |
|
32 |
"com.nokia.carbide.cpp.internal.sdk.ui.SDKPreferencePage", |
|
33 |
"com.nokia.carbide.cdt.internal.builder.ui.BuilderPreferencePage", |
|
34 |
"com.nokia.carbide.cpp.preferences.ExtensionsPreferencesPage", |
|
35 |
"com.nokia.carbide.cpp.internal.builder.utils.ui.PreprocessPreferencePage", |
|
36 |
"com.nokia.carbide.cpp.internal.project.ui.preferences.CarbidePreferencePage", |
|
2150
64e9abb9ebeb
add search preference page to test
Chad Peckham <chad.peckham@nokia.com>
parents:
2149
diff
changeset
|
37 |
"com.nokia.carbide.cdt.internal.builder.ui.BuilderPreferencePage", |
64e9abb9ebeb
add search preference page to test
Chad Peckham <chad.peckham@nokia.com>
parents:
2149
diff
changeset
|
38 |
"com.nokia.carbide.search.system.internal.ui.SearchPreferencePage" |
2149 | 39 |
}; |
40 |
||
41 |
@Override |
|
42 |
protected void setUp() throws Exception { |
|
43 |
||
44 |
} |
|
45 |
||
46 |
@Override |
|
47 |
protected void tearDown() throws Exception { |
|
48 |
super.tearDown(); |
|
49 |
} |
|
50 |
||
51 |
||
52 |
/** |
|
53 |
* Iterte all the global eclipse pref IDs for Carbide prefs |
|
54 |
* and try to create them. Any exception will require teasing |
|
55 |
* the stack frame to find the offending preference that could not be loaded. |
|
56 |
* @throws Exception |
|
57 |
*/ |
|
58 |
public void testCreatePrefs() throws Exception { |
|
59 |
||
60 |
for (String id : carbidePrefIds){ |
|
61 |
PreferencesUtil.createPreferenceDialogOn(WorkbenchUtils.getSafeShell(), id, null, null, 0); |
|
62 |
} |
|
63 |
||
64 |
// Deprecated - to be filtered |
|
65 |
//com.nokia.cdt.debug.cw.symbian.ui.GlobalSettings |
|
66 |
//com.nokia.carbide.cpp.logging.LoggingPreferencesPage |
|
67 |
} |
|
68 |
} |