1 11 package org.eclipse.jdt.internal.debug.core.refactoring; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.jdt.debug.core.IJavaExceptionBreakpoint; 15 16 20 public abstract class ExceptionBreakpointChange extends BreakpointChange { 21 22 private String [] fExclusionFilters, fInclusionFilters; 23 boolean fCaught, fUncaught, fChecked; 24 25 public ExceptionBreakpointChange(IJavaExceptionBreakpoint breakpoint) throws CoreException { 26 super(breakpoint); 27 fExclusionFilters = breakpoint.getExclusionFilters(); 28 fInclusionFilters = breakpoint.getInclusionFilters(); 29 fCaught = breakpoint.isCaught(); 30 fUncaught = breakpoint.isUncaught(); 31 fChecked = breakpoint.isChecked(); 32 } 33 34 protected boolean isChecked() { 35 return fChecked; 36 } 37 38 protected boolean isCaught() { 39 return fCaught; 40 } 41 42 protected boolean isUncaught() { 43 return fUncaught; 44 } 45 46 protected void apply(IJavaExceptionBreakpoint breakpoint) throws CoreException { 47 super.apply(breakpoint); 48 breakpoint.setExclusionFilters(fExclusionFilters); 49 breakpoint.setInclusionFilters(fInclusionFilters); 50 breakpoint.setCaught(fCaught); 51 breakpoint.setUncaught(fUncaught); 52 } 53 54 } 55 | Popular Tags |