Reputation: 5235
In a bean class, suppose there are 100 getters and setters methods. How to quickly remove all the setters from that class? Is there any shortcut in eclipse to selectively delete large number of methods at one go?
Upvotes: 2
Views: 883
Reputation: 10953
You can do this from the outline:
Should look similar to this (sorry, I didn't have 100 setters at hand ;-))
To move the getters out of the way you could open the filters by clicking on the downwards triangle:
This will work if you only have getters and setters and no other methods. Unfortunately I found no way of telling the filter "not set*".
Upvotes: 8