Reputation: 2974
Is there any quick way to add a parameter in all methods of a package in eclipse?
Upvotes: 1
Views: 188
Reputation: 8310
See http://www.raymondcamden.com/index.cfm/2009/3/16/Multifile-search-and-replace-in-Eclipse. You will have to modify the instructions there just a tad for your needs:
Instead of telling Eclipse to search for a literal string you will be searching for a regular expression pattern that describes a method call/definition. I'll leave that as an exercise for you ;-)
Upvotes: 0
Reputation: 31
If you mean to add a few parameters for one method and after that it'll be updated automatically in all packages , there is. Right click on the method and there is option Refactor -> Change Method signature, here you can add/remove parameters.
Upvotes: 1