|
1 /* |
|
2 * Copyright (c) 2009 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 "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 * |
|
16 */ |
|
17 package com.nokia.testfw.launch.ui; |
|
18 |
|
19 import org.eclipse.core.resources.IProject; |
|
20 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; |
|
21 import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup; |
|
22 import org.eclipse.debug.ui.CommonTab; |
|
23 import org.eclipse.debug.ui.EnvironmentTab; |
|
24 import org.eclipse.debug.ui.ILaunchConfigurationDialog; |
|
25 import org.eclipse.debug.ui.ILaunchConfigurationTab; |
|
26 import org.eclipse.debug.ui.sourcelookup.SourceLookupTab; |
|
27 |
|
28 import com.nokia.cdt.debug.cw.symbian.SettingsData; |
|
29 import com.nokia.cdt.internal.debug.launch.ui.DebuggerTab; |
|
30 import com.nokia.cdt.internal.debug.launch.ui.ExceptionsTab; |
|
31 import com.nokia.cdt.internal.debug.launch.ui.ExecutablesTab; |
|
32 import com.nokia.testfw.launch.TFWLaunchPlugin; |
|
33 |
|
34 @SuppressWarnings("restriction") |
|
35 public class SUTEmulationConfigTagGroup extends |
|
36 AbstractLaunchConfigurationTabGroup { |
|
37 |
|
38 public void createTabs(ILaunchConfigurationDialog dialog, String mode) { |
|
39 if (mode.equals("debug")) { |
|
40 ILaunchConfigurationTab tabs[] = { new SUTEmulatorMainTab(), |
|
41 new EnvironmentTab(), new DebuggerTab(), |
|
42 new ExecutablesTab(true), new ExceptionsTab(), |
|
43 new SourceLookupTab(), new CommonTab() }; |
|
44 setTabs(tabs); |
|
45 } else if (mode.equals("run")) { |
|
46 ILaunchConfigurationTab tabs[] = { new SUTEmulatorMainTab(), |
|
47 new EnvironmentTab(), new CommonTab() }; |
|
48 setTabs(tabs); |
|
49 } |
|
50 |
|
51 } |
|
52 |
|
53 public void setDefaults(ILaunchConfigurationWorkingCopy config) { |
|
54 super.setDefaults(config); |
|
55 IProject project = TFWLaunchPlugin.getSelectedProject(); |
|
56 SettingsData |
|
57 .setDefaults( |
|
58 config, |
|
59 SettingsData.LaunchConfig_Emulator, |
|
60 project); |
|
61 } |
|
62 |
|
63 } |