author | Ed Swartz <ed.swartz@nokia.com> |
Tue, 27 Apr 2010 10:40:15 -0500 | |
branch | RCL_2_4 |
changeset 1299 | c6abac939087 |
parent 953 | 68b6a294ab01 |
permissions | -rw-r--r-- |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
1 |
/* |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
8 |
* |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
11 |
* |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
13 |
* |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
14 |
* Description: |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
15 |
* |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
16 |
*/ |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
17 |
package com.nokia.cdt.internal.debug.launch.wizard; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
18 |
|
566
960058f9da89
Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents:
273
diff
changeset
|
19 |
import java.util.ArrayList; |
960058f9da89
Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents:
273
diff
changeset
|
20 |
import java.util.List; |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
21 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
22 |
import org.eclipse.core.resources.IProject; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
23 |
import org.eclipse.core.runtime.CoreException; |
212
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
24 |
import org.eclipse.core.runtime.IConfigurationElement; |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
25 |
import org.eclipse.core.runtime.IExtension; |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
26 |
import org.eclipse.core.runtime.IExtensionPoint; |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
27 |
import org.eclipse.core.runtime.IExtensionRegistry; |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
28 |
import org.eclipse.core.runtime.IPath; |
212
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
29 |
import org.eclipse.core.runtime.IStatus; |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
30 |
import org.eclipse.core.runtime.Platform; |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
31 |
import org.eclipse.debug.core.DebugPlugin; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
32 |
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; |
1299
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
33 |
import org.eclipse.jface.wizard.IWizardPage; |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
34 |
import org.eclipse.jface.wizard.Wizard; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
35 |
import org.eclipse.jface.wizard.WizardDialog; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
36 |
import org.eclipse.swt.widgets.Shell; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
37 |
|
566
960058f9da89
Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents:
273
diff
changeset
|
38 |
import com.nokia.carbide.cpp.ui.CarbideUIPlugin; |
960058f9da89
Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents:
273
diff
changeset
|
39 |
import com.nokia.carbide.cpp.ui.ICarbideSharedImages; |
960058f9da89
Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents:
273
diff
changeset
|
40 |
import com.nokia.cdt.debug.cw.symbian.SettingsData; |
960058f9da89
Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents:
273
diff
changeset
|
41 |
import com.nokia.cdt.internal.debug.launch.LaunchPlugin; |
960058f9da89
Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents:
273
diff
changeset
|
42 |
import com.nokia.cpp.internal.api.utils.core.Check; |
960058f9da89
Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents:
273
diff
changeset
|
43 |
import com.nokia.cpp.internal.api.utils.core.Logging; |
960058f9da89
Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents:
273
diff
changeset
|
44 |
import com.nokia.cpp.internal.api.utils.core.Pair; |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
45 |
|
953 | 46 |
public class LaunchCreationWizard extends Wizard implements ILaunchCreationWizard { |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
47 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
48 |
private MainExecutableSelectionWizardPage fBinarySelectionPage; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
49 |
private LaunchWizardSummaryPage fEmulationSummaryPage; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
50 |
private LaunchWizardSelectionPage fWizardSelectionPage; |
273 | 51 |
private BuildOptionsSelectionPage fBuildOptionsSelectionPage; |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
52 |
private ILaunchConfigurationWorkingCopy launchConfig; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
53 |
private boolean shouldOpenLaunchDialog; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
54 |
private IProject project; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
55 |
private String configurationName; |
212
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
56 |
private List<AbstractLaunchWizard> wizards = new ArrayList<AbstractLaunchWizard>(); |
953 | 57 |
private String categoryId; |
1299
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
58 |
private AbstractLaunchWizard selectedWizard; |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
59 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
60 |
public LaunchCreationWizard(IProject project, String configurationName, |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
61 |
List<IPath> mmps, List<IPath> exes, IPath defaultExecutable, |
212
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
62 |
boolean isEmulation, boolean emulatorOnly, String mode) throws Exception { |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
63 |
this.project = project; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
64 |
|
212
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
65 |
this.configurationName = configurationName; |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
66 |
|
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
67 |
loadWizards(mmps, exes, defaultExecutable, mode); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
68 |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
69 |
// show the binary selection page as only page in main wizard if emulation, |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
70 |
// otherwise it will be shown as needed by non-emulation wizards |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
71 |
if (isEmulation) { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
72 |
fEmulationSummaryPage = new LaunchWizardSummaryPage(configurationName); |
273 | 73 |
fBuildOptionsSelectionPage = new BuildOptionsSelectionPage(); |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
74 |
Check.checkState(exes.size() > 0); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
75 |
IPath emulatorPath = getEmulatorPathFromExePath(exes.get(0)); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
76 |
fBinarySelectionPage = new MainExecutableSelectionWizardPage(mmps, exes, defaultExecutable, true, emulatorPath, emulatorOnly, fEmulationSummaryPage); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
77 |
} |
212
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
78 |
else { |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
79 |
fWizardSelectionPage = new LaunchWizardSelectionPage(this, mmps, exes, defaultExecutable, project, configurationName, mode); |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
80 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
81 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
82 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
83 |
public boolean performFinish() { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
84 |
if (fBinarySelectionPage != null) { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
85 |
try { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
86 |
Pair<IPath, IPath> exeAndMmp = fBinarySelectionPage.getSelectedExeMmpPair(); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
87 |
launchConfig = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(LaunchPlugin.EMULATION_LAUNCH_TYPE).newInstance(null, configurationName); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
88 |
SettingsData.setDefaults(launchConfig, SettingsData.LaunchConfig_Emulator, project, exeAndMmp.second, exeAndMmp.first); |
273 | 89 |
fBuildOptionsSelectionPage.updateConfiguration(launchConfig); |
90 |
IPath processToLaunchTargetPath = fBinarySelectionPage.getProcessToLaunchTargetPath(); |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
91 |
if (processToLaunchTargetPath != null) |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
92 |
SettingsData.setProcessToLaunch(launchConfig, processToLaunchTargetPath); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
93 |
shouldOpenLaunchDialog = fEmulationSummaryPage.shouldOpenLaunchConfigurationDialog(); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
94 |
} catch (CoreException e) { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
95 |
LaunchPlugin.log(e); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
96 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
97 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
98 |
|
1299
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
99 |
if (selectedWizard != null) { |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
100 |
selectedWizard.performFinish(); |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
101 |
Pair<IPath, IPath> exeAndMmp = selectedWizard.getSelectedExeMmpPair(); |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
102 |
IPath processToLaunchTargetPath = selectedWizard.getProcessToLaunchTargetPath(); |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
103 |
launchConfig = |
1299
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
104 |
selectedWizard.createLaunchConfiguration(exeAndMmp.second, exeAndMmp.first, processToLaunchTargetPath); |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
105 |
shouldOpenLaunchDialog = selectedWizard.shouldOpenLaunchConfigurationDialog(); |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
106 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
107 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
108 |
return true; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
109 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
110 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
111 |
public void addPages() { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
112 |
if (fBinarySelectionPage != null) { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
113 |
addPage(fBinarySelectionPage); |
273 | 114 |
addPage(fBuildOptionsSelectionPage); |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
115 |
addPage(fEmulationSummaryPage); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
116 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
117 |
else if (fWizardSelectionPage != null) { |
1299
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
118 |
List<AbstractLaunchWizard> wizards = getWizardsForCategory(getCategoryId()); |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
119 |
if (wizards.size() > 1) { |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
120 |
addPage(fWizardSelectionPage); |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
121 |
} else { |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
122 |
// just directly "select" the single wizard and add its pages instead of using |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
123 |
// a wizard selection node, to avoid a needless intermediate selection page |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
124 |
AbstractLaunchWizard wizard = wizards.get(0); |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
125 |
for (IWizardPage page : wizard.getPages()) { |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
126 |
page.setWizard(null); |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
127 |
addPage(page); |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
128 |
} |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
129 |
setWindowTitle(wizard.getWindowTitle()); |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
130 |
fWizardSelectionPage = null; |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
131 |
selectedWizard = wizard; |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
132 |
} |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
133 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
134 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
135 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
136 |
@Override |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
137 |
public boolean needsPreviousAndNextButtons() { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
138 |
return true; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
139 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
140 |
|
953 | 141 |
public void init() { |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
142 |
setWindowTitle(Messages.getString("LaunchCreationWizard.0")); //$NON-NLS-1$ |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
143 |
setDefaultPageImageDescriptor(CarbideUIPlugin.getSharedImages().getImageDescriptor(ICarbideSharedImages.IMG_NEW_LAUNCH_CONFIG_WIZARD_BANNER)); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
144 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
145 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
146 |
public ILaunchConfigurationWorkingCopy getLaunchConfiguration() { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
147 |
return launchConfig; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
148 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
149 |
|
566
960058f9da89
Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents:
273
diff
changeset
|
150 |
public int openWizard(Shell shell) { |
960058f9da89
Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents:
273
diff
changeset
|
151 |
WizardDialog dialog = new WizardDialog(shell, this); |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
152 |
dialog.create(); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
153 |
return dialog.open(); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
154 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
155 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
156 |
public static IPath getEmulatorPathFromExePath(IPath pathToExe) { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
157 |
IPath path = pathToExe.removeLastSegments(1); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
158 |
path = path.append("epoc.exe"); //$NON-NLS-1$ |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
159 |
if (path.toFile().exists()) |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
160 |
return path; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
161 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
162 |
return null; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
163 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
164 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
165 |
public boolean shouldOpenLaunchConfigurationDialog() { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
166 |
return shouldOpenLaunchDialog; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
167 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
168 |
|
953 | 169 |
public void setCategoryId(String categoryId) { |
170 |
this.categoryId = categoryId; |
|
171 |
} |
|
172 |
||
173 |
public String getCategoryId() { |
|
174 |
return categoryId; |
|
212
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
175 |
} |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
176 |
|
1299
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
177 |
public List<AbstractLaunchWizard> getWizardsForCategory(String categoryId) { |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
178 |
List<AbstractLaunchWizard> wizardsInCatgegory = new ArrayList<AbstractLaunchWizard>(); |
212
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
179 |
for (AbstractLaunchWizard wizard : wizards) { |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
180 |
if (wizard.supportsCategory(categoryId)) { |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
181 |
wizardsInCatgegory.add(wizard); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
182 |
} |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
183 |
} |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
184 |
return wizardsInCatgegory; |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
185 |
} |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
186 |
|
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
187 |
private void loadWizards(List<IPath> mmps, List<IPath> exes, IPath defaultExecutable, String mode) { |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
188 |
Trace32LaunchWizard trace32Wizard = new Trace32LaunchWizard(mmps, exes, defaultExecutable, project, configurationName); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
189 |
if (trace32Wizard.supportsMode(mode)) { |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
190 |
trace32Wizard.addPages(); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
191 |
wizards.add(trace32Wizard); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
192 |
} |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
193 |
|
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
194 |
// load any wizard extensions |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
195 |
IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry(); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
196 |
IExtensionPoint extensionPoint = extensionRegistry.getExtensionPoint(LaunchPlugin.PLUGIN_ID + ".launchWizardExtension"); //$NON-NLS-1$ |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
197 |
IExtension[] extensions = extensionPoint.getExtensions(); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
198 |
|
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
199 |
for (int i = 0; i < extensions.length; i++) { |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
200 |
IExtension extension = extensions[i]; |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
201 |
IConfigurationElement[] elements = extension.getConfigurationElements(); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
202 |
Check.checkContract(elements.length == 1); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
203 |
IConfigurationElement element = elements[0]; |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
204 |
|
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
205 |
boolean failed = false; |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
206 |
try { |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
207 |
Object extObject = element.createExecutableExtension("class"); //$NON-NLS-1$ |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
208 |
if (extObject instanceof ILaunchWizardContributor) { |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
209 |
AbstractLaunchWizard wizard = ((ILaunchWizardContributor)extObject).getWizard(mmps, exes, defaultExecutable, project, configurationName); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
210 |
if (wizard.supportsMode(mode)) { |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
211 |
wizard.addPages(); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
212 |
wizards.add(wizard); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
213 |
} |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
214 |
} else { |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
215 |
failed = true; |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
216 |
} |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
217 |
} |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
218 |
catch (CoreException e) { |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
219 |
failed = true; |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
220 |
} |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
221 |
|
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
222 |
if (failed) { |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
223 |
LaunchPlugin.log(Logging.newStatus(LaunchPlugin.getDefault(), |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
224 |
IStatus.ERROR, |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
225 |
"Unable to load launchWizardExtension extension from " + extension.getContributor().getName())); |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
226 |
} |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
227 |
} |
0e84cf0560e1
added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
0
diff
changeset
|
228 |
} |
1299
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
229 |
|
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
230 |
public void setSelectedWizard(AbstractLaunchWizard selectedWizard) { |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
231 |
this.selectedWizard = selectedWizard; |
c6abac939087
For PlatSim Stop Mode launch shortcut, skip the first selection page when only one wizard is available.
Ed Swartz <ed.swartz@nokia.com>
parents:
953
diff
changeset
|
232 |
} |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
233 |
} |