| Update of /cvsroot/pydev/org.python.pydev.debug/src/org/python/pydev/debug/ui/actions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12619/src/org/python/pydev/debug/ui/actions
Modified Files:
	PythonRunActionDelegate.java 
Log Message:
Making code coverage.
Index: PythonRunActionDelegate.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev.debug/src/org/python/pydev/debug/ui/actions/PythonRunActionDelegate.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PythonRunActionDelegate.java	5 May 2004 02:02:00 -0000	1.1
--- PythonRunActionDelegate.java	8 Oct 2004 16:44:41 -0000	1.2
***************
*** 32,37 ****
  		if (part != null && selectedFile != null) {
  			// figure out run or debug mode
! 			String runMode = action.getId().endsWith("RunPythonAction") ? 
! 												ILaunchManager.RUN_MODE : ILaunchManager.DEBUG_MODE;
  			LaunchShortcut shortcut = new LaunchShortcut();
  			shortcut.setShowDialog(true);
--- 32,49 ----
  		if (part != null && selectedFile != null) {
  			// figure out run or debug mode
! 			String runMode = "";
! 			if(action.getId().endsWith("RunPythonAction")){
! 			    runMode = ILaunchManager.RUN_MODE;
! 			    
! 			}else if(action.getId().endsWith("DebugPythonAction")){
! 			    runMode = ILaunchManager.DEBUG_MODE;
! 			    
! 			} else if(action.getId().endsWith("CoveragePythonAction")){
! 			    runMode = ILaunchManager.PROFILE_MODE;
! 			    
! 			} else{
! 			    throw new RuntimeException("Unknown ");
! 			}
! 			
  			LaunchShortcut shortcut = new LaunchShortcut();
  			shortcut.setShowDialog(true);
 |