/** * Computes and return common adornment flags for the given category. * * @return adornment flags defined in CompositeDebugImageDescriptor */ private int computeAdornmentFlags() { if (!DebugPlugin.getDefault().getBreakpointManager().isEnabled()) { return CompositeDebugImageDescriptor.SKIP_BREAKPOINT; } return 0; } }
/** * Computes and return common adornment flags for the given category. * * @return adornment flags defined in CompositeDebugImageDescriptor */ private int computeAdornmentFlags() { if (!DebugPlugin.getDefault().getBreakpointManager().isEnabled()) { return CompositeDebugImageDescriptor.SKIP_BREAKPOINT; } return 0; }
/** * Computes and return common adornment flags for the given element. * * @param element * @return adornment flags defined in CompositeDebugImageDescriptor */ private int computeAdornmentFlags(Object element) { if (element instanceof IBreakpoint) { if (!DebugPlugin.getDefault().getBreakpointManager().isEnabled()) { return CompositeDebugImageDescriptor.SKIP_BREAKPOINT; } } return 0; }
/** * Returns the breakpoint collection that is relevant for this launch delegate. * By default this is all the breakpoints registered with the Debug breakpoint manager. * * @param configuration the configuration to get associated breakpoints for * @since 3.1 * @return the breakpoints that are relevant for this launch delegate */ protected IBreakpoint[] getBreakpoints(ILaunchConfiguration configuration) { IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager(); if (!breakpointManager.isEnabled()) { // no need to check breakpoints individually. return null; } return breakpointManager.getBreakpoints(); }
@Override protected IBreakpoint[] getBreakpoints(ILaunchConfiguration configuration) { IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager(); if (!breakpointManager.isEnabled()) { // no need to check breakpoints individually. return null; } return breakpointManager.getBreakpoints(JDIDebugModel.getPluginIdentifier()); }
@Override protected IBreakpoint[] getBreakpoints(ILaunchConfiguration configuration) { IBreakpointManager breakpointManager = DebugPlugin.getDefault().getBreakpointManager(); if (!breakpointManager.isEnabled()) { // no need to check breakpoints individually. return null; } return breakpointManager.getBreakpoints(JDIDebugModel.getPluginIdentifier()); }
@Override public void run(){ IWorkbenchSiteProgressService progressService = null; if (fPart != null) { progressService = fPart.getSite(). getAdapter(IWorkbenchSiteProgressService.class); } final boolean enabled = !getBreakpointManager().isEnabled(); Job job = new Job(getText()) { @Override protected IStatus run(IProgressMonitor monitor) { if (!monitor.isCanceled()) { IBreakpointManager bm = getBreakpointManager(); bm.setEnabled(enabled); } return Status.OK_STATUS; } }; if (progressService != null) { progressService.schedule(job); } else { job.schedule(); } }
/** * Recycle the current Webkit debug connection; attempt to reset it to a fresh state beforehand. * * @param url * @throws IOException */ public void navigateToUrl(ILaunchConfiguration launchConfig, final String url, boolean enableBreakpoints, IResourceResolver resolver) throws IOException { this.resourceResolver = resolver; IBreakpointManager eclipseBpManager = DebugPlugin.getDefault().getBreakpointManager(); connection.getDebugger().setBreakpointsActive(enableBreakpoints && eclipseBpManager.isEnabled()); connection.getDebugger().setPauseOnExceptions(getPauseType()); getConnection().getPage().navigate(url); }
if (!ILaunchManager.RUN_MODE.equals(mode) && ILaunchManager.RUN_MODE.equals(launchMode)) { boolean breakpointsOption = false; if (breakpointManager.isEnabled() && ILaunchManager.DEBUG_MODE.equals(mode)) breakpointsOption = true; int result = RunOnServerActionDelegate.openOptionsDialog(shell, Messages.wizRunOnServerTitle, Messages.dialogModeWarningRun, breakpointsOption); } else if (!ILaunchManager.PROFILE_MODE.equals(mode) && ILaunchManager.PROFILE_MODE.equals(launchMode)) { boolean breakpointsOption = false; if (breakpointManager.isEnabled() && ILaunchManager.DEBUG_MODE.equals(mode)) breakpointsOption = true; int result = RunOnServerActionDelegate.openOptionsDialog(shell, Messages.wizProfileOnServerTitle, Messages.dialogModeWarningProfile, breakpointsOption); if (!breakpointManager.isEnabled() && !disabledBreakpoints) { int result = RunOnServerActionDelegate.openBreakpointDialog(shell); if (result == 0)
if (!ILaunchManager.RUN_MODE.equals(mode) && ILaunchManager.RUN_MODE.equals(launchMode)) { boolean breakpointsOption = false; if (breakpointManager.isEnabled() && ILaunchManager.DEBUG_MODE.equals(mode)) breakpointsOption = true; int result = openOptionsDialog(shell, Messages.wizRunOnServerTitle, Messages.dialogModeWarningRun, breakpointsOption); } else if (!ILaunchManager.PROFILE_MODE.equals(mode) && ILaunchManager.PROFILE_MODE.equals(launchMode)) { boolean breakpointsOption = false; if (breakpointManager.isEnabled() && ILaunchManager.DEBUG_MODE.equals(mode)) breakpointsOption = true; int result = openOptionsDialog(shell, Messages.wizProfileOnServerTitle, Messages.dialogModeWarningProfile, breakpointsOption); if (!breakpointManager.isEnabled() && !disabledBreakpoints) { int result = openBreakpointDialog(shell); if (result == 0)
@Override public void run(IProgressMonitor monitor) throws CoreException { getDebugPlugin().addDebugEventListener(this); IBreakpointManager breakpointManager = getBreakpointManager(); fAutoSkip = DebugUITools.getPreferenceStore().getBoolean(IDebugUIConstants.PREF_SKIP_BREAKPOINTS_DURING_RUN_TO_LINE) && breakpointManager.isEnabled(); if (fAutoSkip) { getBreakpointManager().setEnabled(false); breakpointManager.addBreakpointManagerListener(this); } Job job = new Job(ActionMessages.RunToLineHandler_0) { @Override protected IStatus run(IProgressMonitor jobMonitor) { if (!jobMonitor.isCanceled()) { fTarget.breakpointAdded(fBreakpoint); try { fResumee.resume(); } catch (DebugException e) { cancel(); return e.getStatus(); } } return Status.OK_STATUS; } }; job.schedule(); }
enableBreakpoints && eclipseBpManager.isEnabled());