Changeset 3421 for devel-tools
- Timestamp:
- Feb 22, 2008, 7:45:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel-tools/trunk/eclipse/org.refal.plus.rfpdt.launch/src/org/refal/plus/rfpdt/launch/RfpLaunchConfigurationDelegate.java
r2721 r3421 11 11 12 12 public class RfpLaunchConfigurationDelegate extends JavaLaunchDelegate { 13 @Override 14 public boolean isStopInMain (ILaunchConfiguration configuration) throws CoreException { 15 return false; // TODO: add checkbox to run/debug configuration dialog. 16 } 13 17 14 15 * Implementation from LaunchConfigurationDelegate (avoiding java-specific 16 * checks from JavaLaunchDelegate). 17 */ 18 public boolean preLaunchCheck(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor)throws CoreException {19 20 21 22 23 IBreakpoint[] breakpoints= getBreakpoints(configuration);18 /** 19 * Implementation from LaunchConfigurationDelegate (avoiding java-specific checks from JavaLaunchDelegate). 20 */ 21 public boolean preLaunchCheck (ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) 22 throws CoreException { 23 if (!saveBeforeLaunch(configuration, mode, monitor)) { 24 return false; 25 } 26 if (mode.equals(ILaunchManager.RUN_MODE) && configuration.supportsMode(ILaunchManager.DEBUG_MODE)) { 27 IBreakpoint[] breakpoints = getBreakpoints(configuration); 24 28 if (breakpoints == null) { 25 29 return true; 26 30 } 27 28 29 30 31 boolean launchInDebugModeInstead = ((Boolean)prompter.handleStatus(switchToDebugPromptStatus, configuration)).booleanValue(); 32 if (launchInDebugModeInstead) { 33 return false; //kill this launch 34 } 35 36 // if no user prompt, or user says to continue (no need to check other breakpoints) 37 return true; 38 } 39 40 } 41 // no enabled breakpoints... continue launch 42 return true; 43 } 44 31 for (int i = 0; i < breakpoints.length; i++) { 32 if (breakpoints[i].isEnabled()) { 33 IStatusHandler prompter = DebugPlugin.getDefault().getStatusHandler(promptStatus); 34 if (prompter != null) { 35 boolean launchInDebugModeInstead = ((Boolean) prompter.handleStatus(switchToDebugPromptStatus, 36 configuration)).booleanValue(); 37 if (launchInDebugModeInstead) { 38 return false; // kill this launch 39 } 40 } 41 // if no user prompt, or user says to continue (no need to check other breakpoints) 42 return true; 43 } 44 } 45 } 46 // no enabled breakpoints... continue launch 47 return true; 48 } 45 49 }
Note: See TracChangeset
for help on using the changeset viewer.