Reorder - plugin detail

Swap parameters, arguments or array initializer.

n/a
Plugin owner: sandipchitale
Website: http://blogs.sun.com/scblog
Added: 2007-12-26
License: CDDL
Category: Editing
Downloaded: 444 times
Rating:
 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



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.

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

User Comments

There are no comments yet.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo