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.core.IType; 16 import org.eclipse.ltk.core.refactoring.Change; 17 import org.eclipse.ltk.core.refactoring.RefactoringStatus; 18 import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext; 19 import org.eclipse.ltk.core.refactoring.participants.RenameParticipant; 20 21 24 public class JavaBreakpointITypeRenameParticipant extends RenameParticipant { 25 26 private IType fType; 27 28 32 public boolean initialize(Object element) { 33 fType= (IType)element; 34 return true; 35 } 36 37 41 public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) { 42 return new RefactoringStatus(); 43 } 44 45 48 public Change createChange(IProgressMonitor pm) throws CoreException { 49 return JavaBreakpointTypeChange.createChangesForTypeRename(fType, getArguments().getNewName()); 50 } 51 52 55 public String getName() { 56 return RefactoringMessages.JavaBreakpointITypeRenameParticipant_0; } 58 } 59 | Popular Tags |