开发者

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)


  1. Delete the method body
  2. Then select the method
  3. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜