1 11 package org.eclipse.jdt.internal.debug.core.refactoring; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.core.runtime.IProgressMonitor; 15 import org.eclipse.jdt.debug.core.IJavaBreakpoint; 16 import org.eclipse.ltk.core.refactoring.Change; 17 import org.eclipse.ltk.core.refactoring.NullChange; 18 19 import com.ibm.icu.text.MessageFormat; 20 21 30 public class DeleteBreakpointChange extends BreakpointChange { 31 32 public DeleteBreakpointChange(IJavaBreakpoint breakpoint) throws CoreException { 33 super(breakpoint); 34 } 35 36 39 public String getName() { 40 return MessageFormat.format(RefactoringMessages.DeleteBreakpointChange_0, 41 new String [] {getBreakpointLabel(getOriginalBreakpoint())}); 42 } 43 44 47 public Change perform(IProgressMonitor pm) throws CoreException { 48 getOriginalBreakpoint().delete(); 49 return new NullChange(); 50 } 51 52 } 53 | Popular Tags |