[ANN} Rearranger plugin - new version 1.4

The Rearranger plugin rearranges (reorders) class and class member declarations according to a user-specified order.

This version fixes the "preview file structure" popup's method parameter list display, which could contain newline characters or other junk.

The popup display can also now be tailored to display parameter types, parameter names, both or neither.

-Dave

7 comments

Just a reminder: 1.4 still locks idea when reformating xml files.

0

Rats, thought I fixed that one. Ran it over an XML file of mine and the problem was that there were no outer classes declared -- and the Rearranger didn't handle the case of zero classes.

I'll look at it again, though. Thanks for the notice!

-Dave

0

try to alphabetize fields in this class...

I get...

0

Good find, Libor! I'll fix it in a day or two. I'll just alphabetize by the first field name.

-Dave

0

Dave ,

Most of the time, in the extracted method popup dialog, I only want to
see the methods, and their calling trees.
Currently, the dialog also displays the fields. In ui related classes,
there can be a lot of them !!

Request 1a : another option :)
Request 1b : this option checkbox should be placed in the dialog itself,
for a quick switch.

Alain

0

Will do.

One thing, though. If the checkbox is in the dialog, I don't think I can save it with other settings. Only mechanism I know of to persist configuration is when IDEA calls you with a JDOM element which is the parent of your settings. Do you know of another way to obtain this parent element or to force configuration to the other.xml file? Obviously IDEA can persist checkbox settings from dialogs -- e.g. Code Reformat dialog now has the checkbox to Optimize Imports also. So there is a way to do it.

-Dave

0

Dave Kriewall wrote:

>If the checkbox is in the dialog, I don't think I can save it with other settings. Only mechanism I know of to persist configuration is when IDEA calls you with a JDOM element which is the parent of your settings. Do you know of another way to obtain this parent element or to force configuration to the other.xml file? Obviously IDEA can persist checkbox settings from dialogs -- e.g. Code Reformat dialog now has the checkbox to Optimize Imports also. So there is a way to do it.

>

Can you persist a checkbox directly ? In my JDomExternalizable class,
I've always been using public booleans, that I link to the checkboxes
'selected()' value?
Working this way, reaching a checkbox in a dialog is just one method
call/indirection further.

Alain

0

Please sign in to leave a comment.