[ANN] Rearranger plugin version 3.9.x

This plugin:
- rearranges (reorders) class and class member declarations according to a user-specified order and/or method call hierarchy;
- generates section-marking comments;
- provides several controls for spacing within and between methods and classes; and
- permits the user to manually rearrange items.

Version 3.9.x adds the following features:
- A contiguous set of rules may be selected for moving, copying, or deletion.
- Methods may be rearranged by minimum and/or maximum number of parameters.
- Comment generation supports a "fill string" feature.

The "fill string" feature expands generated comments to fill a line (whose width is the project right margin by default, or an absolute width may be specified). Each occurrence of "%FS%" in a comment rule is replaced by the necessary number of characters from the fill string.

If multiple occurrences of "%FS%" exist in a single line, then the fill characters are split equally between them.

Examples:

Version 3.9.1 is for IDEA 4.5.4 (production), and 3.9.2 is for Irida build 3229.

-Dave

4 comments
Comment actions Permalink

Dave

It's not really a bug, but it shouldn't append either: when an
interface method is called by one of the class methods, it's processed
like an extracted method => does not appear in the //-- interface
methods group.

Request:
-


Change the behaviour, or add an option to keep all the interface method
in the proper section.

Example:
-



Before rearranging:
-



class Foo implements ChangeSpeaker {

// 3 interface methods
public addChangeListener(..) ..
public removeChangeListener (..)..
public notifyAllChangeListeners () ..

// 1 other method
public reset () {
...
notifyAllChangeListeners () ; // <<--- uses 1 of the interface
methods
}
}




After rearranging:
-




class Foo implements ChangeSpeaker {

// -


INTERFACE METHODS -



// -


Interface Speaker -



public addChangeListener(..) ..
public removeChangeListener (..)..

// -


OTHER METHODS -


public reset () {
...
notifyAllChangeListeners () ; // <<--- uses 1 of the interface
methods
}
public notifyAllChangeListeners () ..

}




Alain

0
Comment actions Permalink

Alain,

Do you have "Exclude from extracted method processing" checked on your interface method rule?

-Dave

0
Comment actions Permalink

Dave

>Do you have "Exclude from extracted method processing" checked on your interface method rule?
>

>

Yes, I do.
I checked the rule's option, and rearranged a piece of code: it ignored
the option.

Alain

0

Please sign in to leave a comment.