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.IJavaMethodBreakpoint; 15 16 20 public abstract class MethodBreakpointChange extends LineBreakpointChange { 21 22 private String fMethodName, fSignature; 23 private boolean fEntry, fExit, fNativeOnly; 24 25 30 public MethodBreakpointChange(IJavaMethodBreakpoint breakpoint) throws CoreException { 31 super(breakpoint); 32 fMethodName = breakpoint.getMethodName(); 33 fSignature = breakpoint.getMethodSignature(); 34 fEntry = breakpoint.isEntry(); 35 fExit = breakpoint.isExit(); 36 fNativeOnly = breakpoint.isNativeOnly(); 37 } 38 39 43 protected String getMethodName() { 44 return fMethodName; 45 } 46 47 51 protected String getSignature() { 52 return fSignature; 53 } 54 55 59 protected boolean isEntry() { 60 return fEntry; 61 } 62 63 67 protected boolean isExit() { 68 return fExit; 69 } 70 71 75 protected boolean isNativeOnly() { 76 return fNativeOnly; 77 } 78 79 84 protected void apply(IJavaMethodBreakpoint breakpoint) throws CoreException { 85 super.apply(breakpoint); 86 breakpoint.setEntry(fEntry); 87 breakpoint.setExit(fExit); 88 breakpoint.setNativeOnly(fNativeOnly); 89 } 90 91 } 92 | Popular Tags |