/** * @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.isUncaught(); }
/** * @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.setUncaught(!exception.isUncaught()); }
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); } }
fUncaughtButton= createCheckButton(parent, PropertyPageMessages.JavaExceptionBreakpointPage_1); try { fUncaughtButton.setSelection(breakpoint.isUncaught()); } catch (CoreException e) { JDIDebugPlugin.log(e);
String state= null; boolean c= breakpoint.isCaught(); boolean u= breakpoint.isUncaught(); if (c && u) { state= DebugUIMessages.JDIModelPresentation_caught_and_uncaught_60;
flags |= JDIImageDescriptor.CAUGHT; if (eBreakpoint.isUncaught()) { flags |= JDIImageDescriptor.UNCAUGHT;