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.IPackageFragment; 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 JavaBreakpointIPackageFragmentRenameParticipant extends RenameParticipant { 27 28 private IPackageFragment fPackage; 29 30 33 protected boolean initialize(Object element) { 34 fPackage= (IPackageFragment)element; 35 return true; 36 } 37 38 41 public String getName() { 42 return RefactoringMessages.JavaBreakpointIPackageFragmentRenameParticipant_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.createChangesForPackageRename(fPackage, getArguments().getNewName()); 57 } 58 59 } 60 | Popular Tags |