debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/DebugRunProcessDialog.java
changeset 1185 02373fb1e121
parent 1090 02cf64aef519
child 1284 7ef1318ac801
equal deleted inserted replaced
1184:745221c781a3 1185:02373fb1e121
   450 		if (projectExecutableRadioButton.getSelection()) {
   450 		if (projectExecutableRadioButton.getSelection()) {
   451 			projectExecutableViewer.getControl().setEnabled(true);
   451 			projectExecutableViewer.getControl().setEnabled(true);
   452 			data.setExeSelection(EExeSelection.USE_PROJECT_EXECUTABLE);
   452 			data.setExeSelection(EExeSelection.USE_PROJECT_EXECUTABLE);
   453 			IPath selectedPath = (IPath) ((IStructuredSelection) projectExecutableViewer.getSelection()).getFirstElement();
   453 			IPath selectedPath = (IPath) ((IStructuredSelection) projectExecutableViewer.getSelection()).getFirstElement();
   454 			if (selectedPath != null) {
   454 			if (selectedPath != null) {
   455 				String symbianPath = PathUtils.convertPathToWindows(selectedPath);
   455 				data.setExeSelectionPath(selectedPath);
   456 				data.setExeSelectionPath(new Path(symbianPath));
       
   457 			}
   456 			}
   458 			validate();
   457 			validate();
   459 		} else {
   458 		} else {
   460 			projectExecutableViewer.getControl().setEnabled(false);
   459 			projectExecutableViewer.getControl().setEnabled(false);
   461 			// another button becomes active and sets the new launch process
   460 			// another button becomes active and sets the new launch process
   496 
   495 
   497 	private void handleRemoteExecutableRadioSelected() {
   496 	private void handleRemoteExecutableRadioSelected() {
   498 		if (remoteExecutableRadioButton.getSelection()) {
   497 		if (remoteExecutableRadioButton.getSelection()) {
   499 			remoteProgramEntry.setEnabled(true);
   498 			remoteProgramEntry.setEnabled(true);
   500 			data.setExeSelection(EExeSelection.USE_REMOTE_EXECUTABLE);
   499 			data.setExeSelection(EExeSelection.USE_REMOTE_EXECUTABLE);
   501 			String symbianPath = PathUtils.convertPathToWindows(remoteProgramEntry.getText());
   500 			IPath path = PathUtils.createPath(remoteProgramEntry.getText());
   502 			data.setExeSelectionPath(new Path(symbianPath));
   501 			data.setExeSelectionPath(path);
   503 			validate();
   502 			validate();
   504 		} else {
   503 		} else {
   505 			remoteProgramEntry.setEnabled(false);
   504 			remoteProgramEntry.setEnabled(false);
   506 			// another button becomes active and sets the new launch process
   505 			// another button becomes active and sets the new launch process
   507 		}
   506 		}