debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/wizard/SystemTRKLaunchWizard.java
changeset 273 c2533fd23253
parent 212 0e84cf0560e1
child 566 960058f9da89
child 1968 3482df86a51d
equal deleted inserted replaced
272:897d32e5ad84 273:c2533fd23253
    27 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
    27 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
    28 
    28 
    29 import java.util.List;
    29 import java.util.List;
    30 
    30 
    31 public class SystemTRKLaunchWizard extends AbstractLaunchWizard {
    31 public class SystemTRKLaunchWizard extends AbstractLaunchWizard {
       
    32     private BuildOptionsSelectionPage fBuildOptionsSelectionPage;
    32     private TRKConnectionWizardPage fMainPage;
    33     private TRKConnectionWizardPage fMainPage;
    33 	private boolean hasFinished = false;
    34 	private boolean hasFinished = false;
    34 
    35 
    35 	public SystemTRKLaunchWizard(List<IPath> mmps, List<IPath> exes, IPath defaultExecutable, IProject project, String configurationName) {
    36 	public SystemTRKLaunchWizard(List<IPath> mmps, List<IPath> exes, IPath defaultExecutable, IProject project, String configurationName) {
    36 		super(project, configurationName, mmps, exes, defaultExecutable, true, true);
    37 		super(project, configurationName, mmps, exes, defaultExecutable, true, true);
    52     	return true;
    53     	return true;
    53     }
    54     }
    54  
    55  
    55     public void addPages() {
    56     public void addPages() {
    56     	super.addPages();
    57     	super.addPages();
       
    58         fBuildOptionsSelectionPage = new BuildOptionsSelectionPage();
    57         fMainPage = new TRKConnectionWizardPage(this);
    59         fMainPage = new TRKConnectionWizardPage(this);
       
    60         addPage(fBuildOptionsSelectionPage);
    58         addPage(fMainPage);
    61         addPage(fMainPage);
    59         addPage(getSummaryPage());
    62         addPage(getSummaryPage());
    60 	    getBinarySelectionPage().setPathValidator(new IPathValidator() {
    63 	    getBinarySelectionPage().setPathValidator(new IPathValidator() {
    61 			public String isValidPath(IPath path) {
    64 			public String isValidPath(IPath path) {
    62 				return RunModeMainTab.isRemoteTextValid(path.toOSString());
    65 				return RunModeMainTab.isRemoteTextValid(path.toOSString());
    87     		SettingsData.setDefaults(config, SettingsData.LaunchConfig_SysTRK, getProject(), mmpPath, exePath);
    90     		SettingsData.setDefaults(config, SettingsData.LaunchConfig_SysTRK, getProject(), mmpPath, exePath);
    88     		if (processToLaunchTargetPath != null)
    91     		if (processToLaunchTargetPath != null)
    89     			SettingsData.setProcessToLaunch(config, processToLaunchTargetPath);
    92     			SettingsData.setProcessToLaunch(config, processToLaunchTargetPath);
    90     		
    93     		
    91     		// now let the wizard pages update values 
    94     		// now let the wizard pages update values 
       
    95     		fBuildOptionsSelectionPage.updateConfiguration(config);
    92     		fMainPage.updateConfiguration(config);
    96     		fMainPage.updateConfiguration(config);
    93     		
    97     		
    94 		} catch (CoreException e) {
    98 		} catch (CoreException e) {
    95 			e.printStackTrace();
    99 			e.printStackTrace();
    96 		}
   100 		}