I need to refactor code in a wide term. I know that from inside the Eclipse IDE I can refactor my classes. But is there any API that I can use in a java project so that I can refactor projects dynamically through code?
I need some idea on how to achieve the following: a program that calls all the Eclipse refactorings for renaming and moving in a loop to refactoring the entire project in one shot!
I don’t want to introduce new refactoring types by extending the refactoring classes. I just want to call them programmatically.
The answer below is great, but I answered with a wider perspective for the people who need a more bulky and tasty crunch of this wonderful
cake:then:
After that:
then:
find below the code for setting the
descriptor: