I can't delete a method using eclipse refactoring?
I have a method which I want to delete. This method is being called from n number of classes. I want to dele开发者_开发技巧te this method using refactoring and also make eclipse delete all calls to this method rather than go and clean up in each file. I could not find a straight way to do this from refactor (I am using ganymede)
- Delete the method body
- Then select the method
Refactor -> Inline
I don't think it can be done through refactoring. You can do a Search and replace using regex though.
CTRL-H to bring up the search replace dialog
精彩评论