java - How can I surround code with my own custom code in eclipse? -
i have lot of code method invocations like:
speak(name) foo(bar, "string", var2) i want surround parameter like:
speak(check(name)) foo(check(bar), "string", check(var2)) i need many methods , parameters!
how can create script/macro on eclipse click parameters , press key , surround check() method?
a non-answer: don't this. instead of changing
speak(name) to
speak(check(name)) change
speakwithcheck(name) meaning: either use refactoring capabilities of eclipse change method name; , invocations speakwithcheck(); or @ least add new method describes doing instead of polluting many many places in source code this. 
you can declare speak() @deprecated; , on time rid of method altogether. 
the fact can somehow make such "mass manipulation" of code doesn't mean idea.
Comments
Post a Comment