Rearranger RFE: Life Rearranger enhancements

It would be nice, if the Live Rearranger would:

1. show separator comments as special entries as well.

2. show other field/method attributes beside visibility as well
(implementing/overriding/abstract, static/non-static, final/non-final)

Tom

2 comments
Comment actions Permalink

'Static' attribute is currently shown as a small orange diamond attached to the bottom right of the class, field, interface, or method icon. I'll attach an example of an icon for a static field.

There's no existing IDEA icon to show 'abstract' or 'final' attributes. Not sure how these should be shown. Create a new icon for each, or a new icon for each combination of these attributes with class/method/field/interface icons? (Sounds like a job for AlexeyE!)

I can show implemented/implementing and overridden/overriding gutter icons.

I can't show separator comments because these are not Psi elements that I'm interested in. The live rearranger only parses up the Java file to build a tree of classes and class contents, but does not apply any rearranger rules, so has not generated separator comments. Anyway, most comments belong with the class, field or method declaration that follow (or they are embedded in a method).

Why did you want separator comments to appear? Did you want to be able to rearrange them as well?



Attachment(s):
staticField.png
0
Comment actions Permalink

Why did you want separator comments to appear? Did you want to be able to rearrange them as well?


We are using method separators which have an empty line above and below.
If a method has an java-doc comment (and they are very rare), than they
precede a method without an empty line.

Normally I do not want to rearrange these comments; I want to know,
where to move methods/fields to.

Tom

0

Please sign in to leave a comment.