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",
|
|
37 |
"com.nokia.carbide.cdt.internal.builder.ui.BuilderPreferencePage"
|
|
38 |
};
|
|
39 |
|
|
40 |
@Override
|
|
41 |
protected void setUp() throws Exception {
|
|
42 |
|
|
43 |
}
|
|
44 |
|
|
45 |
@Override
|
|
46 |
protected void tearDown() throws Exception {
|
|
47 |
super.tearDown();
|
|
48 |
}
|
|
49 |
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Iterte all the global eclipse pref IDs for Carbide prefs
|
|
53 |
* and try to create them. Any exception will require teasing
|
|
54 |
* the stack frame to find the offending preference that could not be loaded.
|
|
55 |
* @throws Exception
|
|
56 |
*/
|
|
57 |
public void testCreatePrefs() throws Exception {
|
|
58 |
|
|
59 |
for (String id : carbidePrefIds){
|
|
60 |
PreferencesUtil.createPreferenceDialogOn(WorkbenchUtils.getSafeShell(), id, null, null, 0);
|
|
61 |
}
|
|
62 |
|
|
63 |
// Deprecated - to be filtered
|
|
64 |
//com.nokia.cdt.debug.cw.symbian.ui.GlobalSettings
|
|
65 |
//com.nokia.carbide.cpp.logging.LoggingPreferencesPage
|
|
66 |
}
|
|
67 |
}
|