How to programmatically rename a method using JDT
My aim is to programmatically call the Refactor >> Rename Eclipse command for a method inside a Java Source File. Renaming a method as such should also apply the change to all the instances where this method is being used/referred. I believe that JDT has a Refactoring API, but not able to find any documents or tutorials for the same. Can somebody point me in the right direction. Edit: The change is not needed at runtime. I think your most promising approach is to go to the eclipse source code. Download the release you want, with source code. In particular, you want the source for the JDT