debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/LaunchWizardData.java
author dadubrow
Tue, 16 Feb 2010 13:44:54 -0600
changeset 969 b0dd389735fb
parent 956 d1e221a2875f
child 1042 a1a443e77261
permissions -rw-r--r--
externalize strings
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     1
/*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     3
* All rights reserved.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     4
* This component and the accompanying materials are made available
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     6
* which accompanies this distribution, and is available
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     8
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     9
* Initial Contributors:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    11
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    12
* Contributors:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    13
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    14
* Description: 
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    15
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    16
*/
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    17
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    18
package com.nokia.cdt.internal.debug.launch.newwizard;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    19
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    20
import java.util.Collection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    21
import java.util.List;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    22
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    23
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    24
import org.eclipse.core.resources.IProject;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    25
import org.eclipse.core.runtime.CoreException;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    26
import org.eclipse.core.runtime.IPath;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    27
import org.eclipse.core.runtime.IStatus;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    28
import org.eclipse.core.runtime.Path;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    29
import org.eclipse.core.runtime.Platform;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    30
import org.eclipse.core.runtime.Status;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    31
import org.eclipse.core.runtime.preferences.InstanceScope;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    32
import org.eclipse.debug.core.DebugPlugin;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    33
import org.eclipse.debug.core.ILaunchConfigurationType;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    34
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    35
import org.eclipse.debug.core.ILaunchManager;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    36
import org.eclipse.debug.ui.IDebugUIConstants;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    37
import org.osgi.service.prefs.Preferences;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    38
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    39
import com.freescale.cdt.debug.cw.core.RemoteConnectionsTRKHelper;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    40
import com.nokia.carbide.remoteconnections.RemoteConnectionsActivator;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    41
import com.nokia.carbide.remoteconnections.interfaces.IConnectedService;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    42
import com.nokia.carbide.remoteconnections.interfaces.IConnection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    43
import com.nokia.carbide.remoteconnections.interfaces.IService;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    44
import com.nokia.carbide.remoteconnections.internal.api.IConnectedService2;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    45
import com.nokia.carbide.remoteconnections.internal.registry.Registry;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    46
import com.nokia.cdt.debug.cw.symbian.SettingsData;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    47
import com.nokia.cdt.internal.debug.launch.wizard.LaunchOptions;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    48
import com.nokia.cpp.internal.api.utils.core.TextUtils;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    49
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    50
import cwdbg.PreferenceConstants;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    51
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    52
/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    53
 * Data manipulated by the launch wizard and its dialogs.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    54
 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    55
@SuppressWarnings("restriction")
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    56
public class LaunchWizardData extends LaunchOptions {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    57
	public interface IPathValidator {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    58
		/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    59
		 * @param path IPath
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    60
		 * @return Error string or <code>null</code> if is valid
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    61
		 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    62
		String isValidPath(IPath path);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    63
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    64
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    65
	private final IService service;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    66
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    67
	// overall target
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    68
	public static class LaunchType {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    69
		private final String launchId;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    70
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    71
		public LaunchType(String launchId) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    72
			this.launchId = launchId;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    73
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    74
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    75
		public boolean isApplicable(LaunchWizardData data) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    76
			return true;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    77
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    78
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    79
		public String getLaunchId() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    80
			return launchId;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    81
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    82
	};
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    83
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    84
	public final static LaunchType APP_TRK = new LaunchType(null);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    85
	public final static LaunchType SYS_TRK = new LaunchType(null);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    86
	public final static LaunchType ATTACH_TO_PROCESS_LAUNCH = new LaunchType(null);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    87
	public final static LaunchType PLATSIM_RUN_MODE = new LaunchType(null);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    88
	public final static LaunchType PLATSIM_STOP_MODE = new LaunchType(null);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    89
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    90
	// settings made in Debug/Run Process section
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    91
	enum EExeSelection {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    92
		USE_PROJECT_EXECUTABLE,
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    93
		USE_REMOTE_EXECUTABLE,
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    94
		ATTACH_TO_PROCESS,
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    95
	};
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    96
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    97
	private EExeSelection exeSelection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    98
	private IPath exeSelectionPath = Path.EMPTY;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    99
	private EBuildBeforeLaunchOption buildBeforeLaunch;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   100
	private boolean installPackage;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   101
	private String sisPath;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   102
	private IConnection connection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   103
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   104
	// settings made in the Other Settings section
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   105
	enum EBuildBeforeLaunchOption {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   106
		ALWAYS,
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   107
		NEVER,
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   108
		USE_WORKSPACE_SETTING,
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   109
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   110
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   111
	public LaunchWizardData(LaunchOptions launchOptions, IService trkService) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   112
		this.mmps = launchOptions.mmps;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   113
		this.exes = launchOptions.exes;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   114
		this.defaultExecutable = launchOptions.defaultExecutable;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   115
		this.project = launchOptions.project;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   116
		this.configurationName = launchOptions.configurationName;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   117
		this.isEmulation = launchOptions.isEmulation;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   118
		this.emulatorOnly = launchOptions.emulatorOnly;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   119
		this.mode = launchOptions.mode;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   120
		this.service = trkService;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   121
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   122
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   123
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   124
	 * @return the service
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   125
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   126
	public IService getService() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   127
		return service;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   128
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   129
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   130
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   131
	 * @return
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   132
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   133
	public boolean isDebug() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   134
		return mode.equals(ILaunchManager.DEBUG_MODE);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   135
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   136
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   137
	public String getModeLabel() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   138
		if (mode.equals(ILaunchManager.RUN_MODE))
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   139
			return Messages.getString("LaunchWizardData.RunModeLabel"); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   140
		else if (mode.equals(ILaunchManager.DEBUG_MODE))
969
b0dd389735fb externalize strings
dadubrow
parents: 956
diff changeset
   141
			return Messages.getString("LaunchWizardData.DebugModeLabel"); //$NON-NLS-1$
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   142
		else
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   143
			return TextUtils.titleCase(mode);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   144
			
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   145
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   146
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   147
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   148
	 * Validate the detected and/or configured data
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   149
	 * @return IStatus, never <code>null</code>
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   150
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   151
	public IStatus validate() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   152
		return Status.OK_STATUS;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   153
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   154
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   155
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   156
	 * @return 
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   157
	 * @return
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   158
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   159
	public List<IPath> getExes() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   160
		return exes;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   161
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   162
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   163
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   164
	 * @return the defaultExecutable
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   165
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   166
	public IPath getDefaultExecutable() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   167
		return defaultExecutable;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   168
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   169
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   170
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   171
	 * Set the executable selection mode
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   172
	 * @param selection
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   173
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   174
	public void setExeSelection(EExeSelection selection) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   175
		this.exeSelection = selection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   176
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   177
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   178
	 * Set the path for the exe
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   179
	 * @param path or <code>null</code>
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   180
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   181
	public void setExeSelectionPath(IPath path) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   182
		this.exeSelectionPath = path != null ? path : Path.EMPTY;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   183
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   184
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   185
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   186
	 * @return
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   187
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   188
	public EExeSelection getExeSelection() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   189
		return exeSelection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   190
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   191
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   192
	public IPath getExeSelectionPath() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   193
		return exeSelectionPath;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   194
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   195
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   196
	public String getConnectionName() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   197
		IConnection connection = getConnection();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   198
		if (connection == null)
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   199
			return null;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   200
		return connection.getDisplayName();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   201
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   202
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   203
	public void setBuildBeforeLaunchOption(
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   204
			EBuildBeforeLaunchOption setting) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   205
		this.buildBeforeLaunch = setting;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   206
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   207
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   208
	public EBuildBeforeLaunchOption getBuildBeforeLaunch() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   209
		return buildBeforeLaunch;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   210
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   211
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   212
	/** Get current workspace setting */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   213
	public boolean isWorkspaceBuildBeforeLaunch() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   214
		// here's how to get the prefs from a plugin's #getPreferenceStore() without violating access
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   215
		String prefId = IDebugUIConstants.PREF_BUILD_BEFORE_LAUNCH;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   216
		int idx = prefId.lastIndexOf('.');
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   217
		String plugin = prefId.substring(0, idx);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   218
		Preferences node = Platform.getPreferencesService().getRootNode().node(InstanceScope.SCOPE).node(plugin);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   219
		return node.getBoolean(prefId, true);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   220
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   221
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   222
	/** Get actual launch-time setting */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   223
	public boolean isCurrentBuildBeforeLaunch() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   224
		if (buildBeforeLaunch != EBuildBeforeLaunchOption.USE_WORKSPACE_SETTING)
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   225
			return buildBeforeLaunch == EBuildBeforeLaunchOption.ALWAYS;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   226
		return isWorkspaceBuildBeforeLaunch();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   227
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   228
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   229
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   230
	 * @param selection
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   231
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   232
	public void setInstallPackage(boolean selection) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   233
		this.installPackage = selection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   234
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   235
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   236
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   237
	 * @return the installPackage
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   238
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   239
	public boolean isInstallPackage() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   240
		return installPackage;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   241
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   242
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   243
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   244
	 * @return
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   245
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   246
	public IProject getProject() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   247
		return project;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   248
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   249
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   250
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   251
	 * @param sisPath
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   252
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   253
	public void setSisPath(String sisPath) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   254
		this.sisPath = sisPath;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   255
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   256
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   257
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   258
	 * @return
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   259
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   260
	public String getSisPath() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   261
		return sisPath;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   262
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   263
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   264
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   265
	 * Copy the data, for use by a transient dialog.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   266
	 * @return new copy of data
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   267
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   268
	public LaunchWizardData copy() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   269
		LaunchOptions launchOptions = new LaunchOptions();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   270
		launchOptions.mmps = mmps;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   271
		launchOptions.exes = exes;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   272
		launchOptions.defaultExecutable = defaultExecutable;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   273
		launchOptions.project = project;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   274
		launchOptions.configurationName = configurationName;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   275
		launchOptions.isEmulation = isEmulation;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   276
		launchOptions.emulatorOnly = emulatorOnly;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   277
		launchOptions.mode = mode;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   278
		LaunchWizardData d = new LaunchWizardData(launchOptions, service);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   279
		d.exeSelection = exeSelection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   280
		d.exeSelectionPath = exeSelectionPath;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   281
		d.buildBeforeLaunch = buildBeforeLaunch;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   282
		d.installPackage = installPackage;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   283
		d.sisPath = sisPath;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   284
		d.connection = connection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   285
		return d;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   286
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   287
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   288
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   289
	 * Apply the given data to the receiver (when a transient dialog is accepted) 
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   290
	 * @param dialogData
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   291
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   292
	public void apply(LaunchWizardData dialogData) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   293
		exeSelection = dialogData.exeSelection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   294
		exeSelectionPath = dialogData.exeSelectionPath;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   295
		buildBeforeLaunch = dialogData.buildBeforeLaunch;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   296
		installPackage = dialogData.installPackage;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   297
		sisPath = dialogData.sisPath;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   298
		connection = dialogData.connection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   299
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   300
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   301
	/**
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   302
	 * @return
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   303
	 */
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   304
	public boolean requiresInstallPackage() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   305
		return !isSysTRKConnection() || installPackage;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   306
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   307
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   308
	public void setConnection(IConnection connection) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   309
		this.connection = connection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   310
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   311
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   312
	public IConnection getConnection() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   313
		return connection;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   314
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   315
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   316
	public ILaunchConfigurationWorkingCopy createConfiguration() throws CoreException {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   317
		String launchTypeId = getApplicableLaunchTypeId();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   318
		ILaunchConfigurationType launchType = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(launchTypeId);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   319
		ILaunchConfigurationWorkingCopy config = launchType.newInstance(null, configurationName);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   320
		initializeConfigSettings(launchTypeId, config);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   321
		
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   322
		return config;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   323
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   324
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   325
	private void initializeConfigSettings(String launchTypeId, ILaunchConfigurationWorkingCopy config) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   326
		IPath exePath = getExePath();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   327
		IPath mmpPath = getMmpPath(exePath);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   328
		if (launchTypeId.equals(SettingsData.APP_TRK_LAUNCH_TYPE_ID)) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   329
    		SettingsData.setDefaults(config, SettingsData.LaunchConfig_AppTRK, project, mmpPath, exePath);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   330
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   331
		else if (launchTypeId.equals(SettingsData.SYS_TRK_LAUNCH_TYPE_ID)) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   332
    		SettingsData.setDefaults(config, SettingsData.LaunchConfig_SysTRK, project, mmpPath, exePath);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   333
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   334
		else if (launchTypeId.equals(SettingsData.ATTACH_LAUNCH_TYPE_ID)) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   335
    		SettingsData.setDefaults(config, SettingsData.LaunchConfig_AppTRK, project, mmpPath, exePath);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   336
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   337
		addBuildOptions(config);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   338
		// always set the current connection id
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   339
		config.setAttribute(RemoteConnectionsTRKHelper.CONNECTION_ATTRIBUTE, Registry.CURRENT_CONNECTION_ID);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   340
		if (installPackage)
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   341
			config.setAttribute(PreferenceConstants.J_PN_SisFileHostPath, sisPath);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   342
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   343
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   344
	private IPath getMmpPath(IPath exePath) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   345
		if (!mmps.isEmpty()) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   346
			for (int i = 0; i < exes.size(); i++) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   347
				IPath exe = exes.get(i);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   348
				if (exe.lastSegment().equals(exePath.lastSegment()))
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   349
					return mmps.get(i);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   350
			}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   351
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   352
		return null;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   353
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   354
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   355
	private IPath getExePath() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   356
		if (exeSelection.equals(EExeSelection.ATTACH_TO_PROCESS))
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   357
			return exes.get(0);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   358
		return exeSelectionPath;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   359
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   360
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   361
	private IConnectedService getConnectedService() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   362
		if (connection != null) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   363
			Collection<IConnectedService> connectedServices = 
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   364
				RemoteConnectionsActivator.getConnectionsManager().getConnectedServices(connection);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   365
			for (IConnectedService connectedService : connectedServices) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   366
				if (connectedService.getService().getIdentifier().equals(service.getIdentifier()))
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   367
					return connectedService;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   368
			}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   369
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   370
		return null;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   371
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   372
	
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   373
	public boolean isSysTRKConnection() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   374
		IConnectedService connectedService = getConnectedService();
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   375
		if (connectedService instanceof IConnectedService2) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   376
			String value = ((IConnectedService2) connectedService).getProperties().get("is-system-trk"); //$NON-NLS-1$
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   377
			return Boolean.parseBoolean(value);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   378
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   379
		return false;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   380
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   381
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   382
	private String getApplicableLaunchTypeId() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   383
		if (exeSelection.equals(EExeSelection.ATTACH_TO_PROCESS))
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   384
			return SettingsData.ATTACH_LAUNCH_TYPE_ID;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   385
		else if (!installPackage || isSysTRKConnection())
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   386
			return SettingsData.SYS_TRK_LAUNCH_TYPE_ID;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   387
		else
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   388
			return SettingsData.APP_TRK_LAUNCH_TYPE_ID;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   389
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   390
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   391
	private void addBuildOptions(ILaunchConfigurationWorkingCopy config) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   392
		int buildBeforeLaunchValue = ICDTLaunchConfigurationConstants.BUILD_BEFORE_LAUNCH_USE_WORKSPACE_SETTING;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   393
		switch (buildBeforeLaunch) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   394
		case NEVER:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   395
			buildBeforeLaunchValue = ICDTLaunchConfigurationConstants.BUILD_BEFORE_LAUNCH_DISABLED;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   396
			break;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   397
		case ALWAYS:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   398
			buildBeforeLaunchValue = ICDTLaunchConfigurationConstants.BUILD_BEFORE_LAUNCH_ENABLED;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   399
			break;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   400
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   401
		config.setAttribute(ICDTLaunchConfigurationConstants.ATTR_BUILD_BEFORE_LAUNCH, buildBeforeLaunchValue);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   402
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   403
}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
   404