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.IJavaWatchpoint; 15 16 20 public abstract class WatchpointChange extends LineBreakpointChange { 21 22 private String fFieldName; 23 private boolean fAccess, fModification; 24 25 public WatchpointChange(IJavaWatchpoint watchpoint) throws CoreException { 26 super(watchpoint); 27 fFieldName = watchpoint.getFieldName(); 28 fAccess = watchpoint.isAccess(); 29 fModification = watchpoint.isModification(); 30 } 31 32 protected String getFieldName() { 33 return fFieldName; 34 } 35 36 protected void apply(IJavaWatchpoint breakpoint) throws CoreException { 37 super.apply(breakpoint); 38 breakpoint.setAccess(fAccess); 39 breakpoint.setModification(fModification); 40 } 41 } 42 | Popular Tags |