Reorder - plugin detail

Swap parameters, arguments or array initializer.

Plugin owner: sandipchitale
Added: 2007-12-26
License: CDDL
Category: Editing
Downloaded: 839 times
 0, by 0 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.02 MB   Last Update: 2007-12-30

What's new in this version

Verifications for NetBeans versions

Plugin is not subject to any verification


This supports single click swapping of a parameter, argument or array initializer expressions with pervious or next item in the sequence. It maintains the caret position thus allowing repeated swapping. It automatically handles the comma delimiter.

For example, with caret at | in:

void method(int iii, String |sss, boolean bbb){}
pressing CTRL+ALT+. (i.e. period) or invoking Source:Swap Next action yields:
void method(int iii, boolean bbb, String |sss){}
pressing CTRL+ALT+, (i.e. comma) or invoking Source:Swap Previous action with the original source yields:
void method(String |sss, int iii, boolean bbb){}

BTW I used the WhichTree module to understand the Javac Trees to figure out how to implement this module. WhichTree module is very useful if you are dealing with Java source in the editor.


DISCLAIMER: This module is experimental. So no guarantees. Use the module at your own risk.

[ You have to be logged in to be able to comment. ]

User Comments

There are no comments yet.