Niels Ull Harremoës wrote: > "Thomas Singer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED]... > >>I want to be able to define, whether the created method should be >>static or the created method/field should be final. >> >>I only can imagine this using a dialog. > > I disagree. Having a dialog pop up would interrupt the flow too much. To me, > it's much simpler just to write the static/final myself.
I agree that it would interrupt the work flow. Although maybe there should be some changes to the way you tab through a method that is being created? I'd like the first active location (the thing enclosed in a red rectangle) to be the access modifier. Right now that's always "private" -- if I want to change it I have to step backwards from the return type. Then, I'd like to be able to specify keywords such as static/final. If I do that in the return type box, I destroy the return type that IDEA had guessed for me, and if I also use completion, then afterwards I can't tab to the code location. Example: Write bar(); in a method. Wait for the lightbulb to come up. Press alt-enter and accept creating the method. You get (where the brackets indicate the red box: private [void|] bar() { } If I type "stat<ctrl-space>" I end up like this: private static |bar() { } The active location is gone and so is "void" (of course). I have to re-type "void", manually move back to "private" to change it to "public" (perhaps), and then manually move to the location where the code to should be. Maybe we could have something like this instead? First step: [private|] [] [void] bar() { } If I want "public", I just enter pub<ctrl-space> and then <tab> to the next location where I can type access flags: [public] [|] [void] bar() { } Then I can type something like "final synchronized" and tab to the next location: [public] [final synchronized] [void|] bar() { } And finally tab to the code location (BTW, shouldn't there be an empty line?): [public] [final synchronized] [void] bar() { | } The problem would of course be getting rid of the superfluous spaces in case you want to leave one or both of the fields empty: v v [] [] [void] bar() { | } _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://lists.jetbrains.com/mailman/listinfo/eap-features