corner imagecorner image
IDEPlatformPluginsDocs & SupportCommunityPartners

Reorder - plugin detail

Swap parameters, arguments or array initializer.

n/a
Plugin owner: sandipchitale
Website: http://blogs.sun.com/scblog
Added: 2007-12-26
Last updated: 2007-12-30
NetBeans Versions: 6.0
License: CDDL
Category: Editing
Size: 0.02 MB
Downloaded: 237 times
Rating:
 0, by 0 users


Download plugin

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.



What's new in this version

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

User Comments

There are no comments yet.