Fix use of PathUtils: do not use new Path() on a Windows format path; this breaks in Linux.
authorEd Swartz <ed.swartz@nokia.com>
Thu, 08 Apr 2010 14:41:29 -0500
changeset 1185 02373fb1e121
parent 1184 745221c781a3
child 1186 067198a8221d
Fix use of PathUtils: do not use new Path() on a Windows format path; this breaks in Linux.
debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/DebugRunProcessDialog.java
--- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/DebugRunProcessDialog.java	Thu Apr 08 14:31:29 2010 -0500
+++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/DebugRunProcessDialog.java	Thu Apr 08 14:41:29 2010 -0500
@@ -452,8 +452,7 @@
 			data.setExeSelection(EExeSelection.USE_PROJECT_EXECUTABLE);
 			IPath selectedPath = (IPath) ((IStructuredSelection) projectExecutableViewer.getSelection()).getFirstElement();
 			if (selectedPath != null) {
-				String symbianPath = PathUtils.convertPathToWindows(selectedPath);
-				data.setExeSelectionPath(new Path(symbianPath));
+				data.setExeSelectionPath(selectedPath);
 			}
 			validate();
 		} else {
@@ -498,8 +497,8 @@
 		if (remoteExecutableRadioButton.getSelection()) {
 			remoteProgramEntry.setEnabled(true);
 			data.setExeSelection(EExeSelection.USE_REMOTE_EXECUTABLE);
-			String symbianPath = PathUtils.convertPathToWindows(remoteProgramEntry.getText());
-			data.setExeSelectionPath(new Path(symbianPath));
+			IPath path = PathUtils.createPath(remoteProgramEntry.getText());
+			data.setExeSelectionPath(path);
 			validate();
 		} else {
 			remoteProgramEntry.setEnabled(false);