Any IDE wizards hanging out?
I want to do something seemingly simple, which is turning out to be fairly difficult: I want to replace all variable declarations of one type with variable declarations of another type
Ex:
Foo x; ==> Bar x;
protected final Foo x; ==> protected final Bar x;
public abstract Foo = Foo() + 7; ==> public abstract Bar = Foo() + 7;
I figure that this must be possible but I cannot, for the life of me, figure out how. I can get close, but I stall on the following issues:
- How can I either not modify the "modifiers" like
public
,final
, and so on, preceding theFoo
variable declaration, or capture them so that I can make sure they don't get lost? - How can I not replace the right-hand side of the equals sign in the 3rd example?