/** * @see BreakpointToggleAction#getToggleState(IJavaBreakpoint) */ protected boolean getToggleState(IJavaBreakpoint breakpoint) throws CoreException { //will only be called after isEnabledFor so cast is safe IJavaExceptionBreakpoint exception= (IJavaExceptionBreakpoint)breakpoint; return exception.isCaught(); }
/** * @see BreakpointToggleAction#doAction(IJavaBreakpoint) */ public void doAction(IJavaBreakpoint breakpoint) throws CoreException { //will only be called after isEnabledFor so cast is safe IJavaExceptionBreakpoint exception= (IJavaExceptionBreakpoint)breakpoint; exception.setCaught(!exception.isCaught()); }
public ExceptionBreakpointChange(IJavaExceptionBreakpoint breakpoint) throws CoreException { super(breakpoint); fExclusionFilters = breakpoint.getExclusionFilters(); fInclusionFilters = breakpoint.getInclusionFilters(); fCaught = breakpoint.isCaught(); fUncaught = breakpoint.isUncaught(); fChecked = breakpoint.isChecked(); }
/** * @see org.eclipse.jdt.internal.debug.ui.propertypages.JavaBreakpointPage#doStore() */ protected void doStore() throws CoreException { super.doStore(); IJavaExceptionBreakpoint breakpoint= (IJavaExceptionBreakpoint) getBreakpoint(); boolean caught= fCaughtButton.getSelection(); if (caught != breakpoint.isCaught()) { breakpoint.setCaught(caught); } boolean uncaught= fUncaughtButton.getSelection(); if (uncaught != breakpoint.isUncaught()) { breakpoint.setUncaught(uncaught); } // TODO remove cast once the API freeze is over and the method has been added to IJavaExceptionBreakpoint boolean suspend = fSuspendOnSubclasses.getSelection(); if(suspend != ((JavaExceptionBreakpoint)breakpoint).isSuspendOnSubclasses()) { ((JavaExceptionBreakpoint)breakpoint).setSuspendOnSubclasses(suspend); } }
fCaughtButton= createCheckButton(parent, PropertyPageMessages.JavaExceptionBreakpointPage_0); try { fCaughtButton.setSelection(breakpoint.isCaught()); } catch (CoreException e) { JDIDebugPlugin.log(e);
boolean c= breakpoint.isCaught(); boolean u= breakpoint.isUncaught(); if (c && u) {
if (eBreakpoint.isCaught()) { flags |= JDIImageDescriptor.CAUGHT;