applying groovy intentions to an entire file

I ran across this: http://devnet.jetbrains.net/message/5233670#5233670

Intellij IDEA 11.1.1

However, when i try to run "Change to groovy-style property reference" and use the instructions in the thread from above (Press {Alt-Enter|Right|Fix all for file}) -- I don't see "Fix all for file" listed.

Carlos

0
3 comments

This action is only available for problems reported by inspections, and you're trying to invoke an intention action (in which there's no problem => nothing to fix). You may enable Settings | Inspections | Groovy | GPath inspections | Getter/Setter call can be property access, then you'll get the warnings and you'll be able to fix them all

0
Avatar
Permanently deleted user

peter - you rock.

it would be very useful if you could run an intention that doesn't have a inspection corollary against the entire file ... like "remove unnecessary parenthesis"

bundling a few of these together would have the makings of a useful Java -> Groovy converted.

Carlos

0

Could you please file a feature request for that (http://youtrack.jetbrains.com/dashboard)?

0

Please sign in to leave a comment.