I'm trying to extend eclipse's rename refactoring to call another rename refactoring.
public class Person {
...
}
public class PersonDAO {
public List<Person> getPersonByName(String name) {
...
}
}
After renaming the class Person to User, I want methods like getPersonByName
to be renamed to getUserByName
.
I've extended RenameParticipant and tried to do it by using both JDT rename refactoring and ASTRewrite.
The problem is the changes I create conflict with the original rename refactoring changes.
I couldn't use postCreateChange
(it seems the basic processor only returns null) and now I'm stuck.
Any help is much appreciated.