Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Programmatically Rename and Move a Java Class
Programmatically Rename and Move a Java Class [message #1719868] Tue, 12 January 2016 18:04
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
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
Previous Topic:Formatter does not support Ratliff style
Next Topic:Removing internal JDK classes from suggested "quick fix" imports
Goto Forum:
  


Current Time: Fri Apr 26 00:47:31 GMT 2024

Powered by FUDForum. Page generated in 0.03399 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top