debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/wizard/LaunchCreationWizard.java
changeset 273 c2533fd23253
parent 212 0e84cf0560e1
child 566 960058f9da89
child 569 369485fbe634
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/wizard/LaunchCreationWizard.java	Thu Jun 18 15:26:18 2009 -0500
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/wizard/LaunchCreationWizard.java	Thu Jun 18 16:52:27 2009 -0500
@@ -48,6 +48,7 @@
 	private LaunchWizardSummaryPage fEmulationSummaryPage;
 	private LaunchCategorySelectionPage fCategorySelectionPage;
 	private LaunchWizardSelectionPage fWizardSelectionPage;
+    private BuildOptionsSelectionPage fBuildOptionsSelectionPage;
 	private ILaunchConfigurationWorkingCopy launchConfig;
 	private boolean shouldOpenLaunchDialog;
 	private IProject project;
@@ -67,6 +68,7 @@
 		// otherwise it will be shown as needed by non-emulation wizards
 		if (isEmulation)  {
 			fEmulationSummaryPage = new LaunchWizardSummaryPage(configurationName);
+			fBuildOptionsSelectionPage = new BuildOptionsSelectionPage();
 			Check.checkState(exes.size() > 0);
 			IPath emulatorPath = getEmulatorPathFromExePath(exes.get(0));
 			fBinarySelectionPage = new MainExecutableSelectionWizardPage(mmps, exes, defaultExecutable, true, emulatorPath, emulatorOnly, fEmulationSummaryPage);
@@ -83,7 +85,8 @@
 				Pair<IPath, IPath> exeAndMmp = fBinarySelectionPage.getSelectedExeMmpPair();
 				launchConfig = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(LaunchPlugin.EMULATION_LAUNCH_TYPE).newInstance(null, configurationName);
 				SettingsData.setDefaults(launchConfig, SettingsData.LaunchConfig_Emulator, project, exeAndMmp.second, exeAndMmp.first);
-		    	IPath processToLaunchTargetPath = fBinarySelectionPage.getProcessToLaunchTargetPath();	
+				fBuildOptionsSelectionPage.updateConfiguration(launchConfig);
+				IPath processToLaunchTargetPath = fBinarySelectionPage.getProcessToLaunchTargetPath();	
 				if (processToLaunchTargetPath != null)
 	    			SettingsData.setProcessToLaunch(launchConfig, processToLaunchTargetPath);
 				shouldOpenLaunchDialog = fEmulationSummaryPage.shouldOpenLaunchConfigurationDialog();
@@ -108,6 +111,7 @@
     public void addPages() {
     	if (fBinarySelectionPage != null) {
     		addPage(fBinarySelectionPage);
+    		addPage(fBuildOptionsSelectionPage);
     		addPage(fEmulationSummaryPage);
     	} 
     	else if (fWizardSelectionPage != null) {