Student Project: Other Actions for Multiple Files?

Recently I reported on the 'batch refactoring' project by one of the NetBeans Platform students at the Julius-Maximilians-Universit├Ąt, in W├╝rzburg, Germany. Here is that article, called "NetBeans Platform Student Projects: Batch Refactoring". There is progress in this project, as you can see here:

It works perfectly. You right-click a package and then the actions above can be used to format all the Java files in the package or to fix the imports of all the Java files in the package. I like it a lot and it's a standard part of my installation now. I'm hoping Lorenz Weber, i.e., the student working on this project, will put the plugin in the Plugin Portal soon. Until then, all the code is here, in the issue, though it takes a little bit of work to figure it all out:

The next question is: are there other multi-file actions that should be included in this project? Lorenz would like to know—leave a comment here with your suggestions and he'll consider incorporating them.


How about separating all the classes in files into their own file each? Some times when I am refactoring code I will create multiple classes in the same source file for convenience. After all, I will be cut and pasting some of the variables and methods into the new class, it helps to have it on hand. Then when I am done I need to create new files for each class and add all the appropriate imports. If that could be done to a bunch of files for me at the touch of a button that would be most handy!

Posted by Art Bugorski on November 06, 2008 at 05:24 AM PST #

or provide batch code transformation for:

e.g scan selected node for warnings and excecute one transformation after the other.

Posted by Michael Bien on November 23, 2008 at 10:19 PM PST #

i need a project on java for my final yr .plz send me project psysnopsys .

Posted by soumya rout on December 29, 2008 at 06:35 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« July 2016