debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/DebugRunProcessDialog.java
branchRCL_2_4
changeset 1091 9ce8893d737f
parent 1044 698d7a6c6f6a
child 1191 0523013ddf00
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/DebugRunProcessDialog.java	Wed Mar 10 08:43:57 2010 -0600
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/DebugRunProcessDialog.java	Wed Mar 10 15:28:22 2010 -0600
@@ -361,15 +361,17 @@
 	}
 	
 	protected void initUI() {
-		List<IPath> exes = data.getExes();
+		List<IPath> exes = data.getLaunchableExes();
 		projectExecutableViewer.setInput(exes);
 		IPath exeSelectionPath = data.getExeSelectionPath();
 		if (exeSelectionPath.equals(Path.EMPTY) && !exes.isEmpty())
 			exeSelectionPath = exes.get(0);
-		projectExecutableViewer.setSelection(new StructuredSelection(exeSelectionPath));
-		IPath remotePath = createSuggestedRemotePath(exeSelectionPath);
-		remoteProgramEntry.setText(PathUtils.convertPathToWindows(remotePath));
-
+		if (!Path.EMPTY.equals(exeSelectionPath)) {
+			projectExecutableViewer.setSelection(new StructuredSelection(exeSelectionPath));
+			IPath remotePath = createSuggestedRemotePath(exeSelectionPath);
+			remoteProgramEntry.setText(PathUtils.convertPathToWindows(remotePath));
+		}
+		
 		if (data.getExeSelection() == EExeSelection.USE_PROJECT_EXECUTABLE && exeSelectionPath != null) {
 			projectExecutableRadioButton.forceFocus();
 		}