Programmatically Rename and Move a Java Class [message #1719868] |
Tue, 12 January 2016 18:04 |
|
Hi, i want to rename the Name of a Class and its Package at the same time (e.g. to Keep them in sync)
- I can use RenameTypeProcessor to rename the type
- i can use JavaMoveProcessor to move the file, but i did not get it running at the same time.
in my RenameElementProcessor i want to handle both.
i create the processors in initialize based on the current data and i update the stuff (newName/Destination) in checkFinalConditions based on the newName
but if the two refactorings are executed in the order rename/move then the move does no longer find its source.
can you give me some hints on how to achieve this?
thanks Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Powered by
FUDForum. Page generated in 0.03399 seconds