Package com.iizigo.java.refactor
Class Rename
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
org.eclipse.ltk.core.refactoring.participants.RenameParticipant
com.iizigo.java.refactor.Rename
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
public class Rename extends org.eclipse.ltk.core.refactoring.participants.RenameParticipant
Implements refactoring rename action with do/undo.
- Author:
- Mikael Andersson, Christopher Mindus
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.ltk.core.refactoring.RefactoringStatus
checkConditions
(org.eclipse.core.runtime.IProgressMonitor pm, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context) org.eclipse.ltk.core.refactoring.Change
createChange
(org.eclipse.core.runtime.IProgressMonitor pm) getName()
protected boolean
initialize
(Object element) Methods inherited from class org.eclipse.ltk.core.refactoring.participants.RenameParticipant
getArguments, initialize
Methods inherited from class org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
createPreChange, getProcessor, getTextChange, initialize
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
Constructor Details
Rename
public Rename()Default Eclipse constructor.
Method Details
initialize
- Specified by:
initialize
in classorg.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
getName
- Specified by:
getName
in classorg.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
checkConditions
public org.eclipse.ltk.core.refactoring.RefactoringStatus checkConditions(org.eclipse.core.runtime.IProgressMonitor pm, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context) throws org.eclipse.core.runtime.OperationCanceledException - Specified by:
checkConditions
in classorg.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
- Throws:
org.eclipse.core.runtime.OperationCanceledException
createChange
public org.eclipse.ltk.core.refactoring.Change createChange(org.eclipse.core.runtime.IProgressMonitor pm) throws org.eclipse.core.runtime.CoreException, org.eclipse.core.runtime.OperationCanceledException - Specified by:
createChange
in classorg.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
- Throws:
org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException