Introduction
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.
Sources
DISCLAIMER: This module is experimental. So no guarantees. Use the module at your own risk.
What's new in this version