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.core.runtime.OperationCanceledException; 16 import org.eclipse.jdt.core.IJavaProject; 17 import org.eclipse.ltk.core.refactoring.Change; 18 import org.eclipse.ltk.core.refactoring.RefactoringStatus; 19 import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext; 20 import org.eclipse.ltk.core.refactoring.participants.RenameParticipant; 21 22 23 26 public class JavaBreakpointIJavaProjectRenameParticipant extends RenameParticipant { 27 28 private IJavaProject fProject; 29 30 33 protected boolean initialize(Object element) { 34 fProject= (IJavaProject) element; 35 return true; 36 } 37 38 41 public String getName() { 42 return RefactoringMessages.JavaBreakpointIJavaProjectRenameParticipant_0; } 44 45 48 public RefactoringStatus checkConditions(IProgressMonitor pm, CheckConditionsContext context) throws OperationCanceledException { 49 return new RefactoringStatus(); 50 } 51 52 55 public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException { 56 return JavaBreakpointTypeChange.createChangesForProjectRename(fProject, getArguments().getNewName()); 57 } 58 59 } 60 | Popular Tags |