My favorites | Sign in
Logo
                
Code license: New BSD License
Labels: Eclipse, JavaEditor
People details
Project owners:
  sandipchitale

The assymetry in the way , (comma) is used to separate the items in parameter and arguments lists always causes problem when one wants to reorder that list in Java editor. Is that why Java allows trailing commas in array initializer? ;) may be.

The Reorder plug-in adds the following actions to the Java editor tool bar.

Basically the actions reorder the:

and automatically adjust the ',' separator.

For example with caret at | in:

void method(int iii, String |sss, boolean bbb){}

pressing Ctrl+. (i.e. Control+period) or clicking on Swap forward tool bar button yields:

void method(int iii, boolean bbb, String |sss){}

or pressing CTRL+, (i.e. Control+comma) or clicking on Swap backward tool bar button with the original source yields:

void method(String |sss, int iii, boolean bbb){}









Hosted by Google Code