felixtsu / idea-generate-fluent-interface

A simple plugin that generates fluent interface property access method for IntelliJ IDEA.
8 stars 6 forks source link

Inner Classes - incorrect {}-Level for access methods #20

Open macvoo opened 5 years ago

macvoo commented 5 years ago

See  .gif recording

The setters are not added to the inner class, but the the "outer" class instead. Therefore they have to be relocated after generation.

macvoo commented 5 years ago

I just noticed, that it makes a difference, whether to put the cursor into the middle of the field name, or after the semicolumn.

in the screenrecording, I clicked right in the middle of "user". e.g.: "us|er" where "|" is the cursor location. -> this failes but if I click after "user;". e.g. "user;|" where "|" is the cursor. --> it succeeds to place the accessor-methods correctly.

Still this is a difference to the behavior of the standard Intellij Getter & Setter creation. (these methods take care of that)