Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 delete 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)

like image 501
rabbit Avatar asked Jan 15 '11 14:01

rabbit


People also ask

How do you Refactor a method in Eclipse?

Eclipse makes this absurdly easy to do. Right-click on almost anything and choose Refactor > Rename. Type in a new name for whatever it is, and make sure that the Update References checkbox is checked. This will ensure that all references in all of your code will be updated.

Does Eclipse support refactoring?

In particular, EMF Refactor supports metrics reporting, smell detection, and refactoring for models being based on the Eclipse Modeling Framework, a widely used open source technology in model-based software development.


1 Answers

  1. Delete the method body
  2. Then select the method
  3. Refactor -> Inline
like image 85
Vitalii Fedorenko Avatar answered Oct 25 '22 15:10

Vitalii Fedorenko