...thanks to Jonathan Ellis for almost completely rewriting ImportScrubber - lots of code cleanup. Also included is Toshiyuki Iwata's encoding patch.
...he's rewritten much of ImportScrubber, including some bug fixes and performance improvements.
...thanks to Neil for cleaning up the GUI. Thanks also to Roedy Green for the tip about the "val." imports.
...after many months of procrastination on my part. :-)
....a new BCEL version, a "remember my directory" feature, and some miniscule GUI changes. Also some changes suggested/provided by Markus Crafter, thanks Markus!
A French translation; thanks to Olivier.
A "put Java libraries at the top" option; thanks to Martin Saxor for the code.
A check for fully qualified class names; thanks to Mark Langley for the suggestion.
....just click on "Surveys" to fill it out. I'm trying to get an idea of what most people use - the GUI, the Ant task, or the command line.
....by fixing a bug that would skip imports if only a static method was called on a class.
....it should go a long way toward eliminating many of the false positives which have plagued past versions - i.e., where "text/plain" was seen as an import statement and so forth. Thanks to Marcus Dahm for his help on this one.
...thanks to Jason van Zyl for the catch.
....and tweaks the copyright header preservation feature.
....and wants to translate the Importscrubber labels and whatnot to their language, please let me know. In fact, here are all the labels - if you want, just translate them and send the block of code below to me:
================
public static final String APP_NAME = "Importscrubber";
public static final String FILE_BROWSER_TITLE = "Note: class files and source code files must be in the same directory";
public static final String VERSION_ID = APP_NAME + " 1.3.4";
public static final String BROWSE_LABEL = "Browse";
public static final String GO_LABEL = "Go";
public static final String FIND_FILES_LABEL = "Find files";
public static final String ALL_DONE = "All done!";
public static final String HELP_LABEL = "Help";
public static final String FILE_LABEL = "File";
public static final String ABOUT_LABEL = "About";
public static final String RECURSE_LABEL = "Recurse";
public static final String EXIT_LABEL = "Exit";
public static final String HELP_MESSAGE = " " + APP_NAME + "\nThis is a utility to clean up import statements. To use it:\n1) Make sure your Java source code file and class file are in the same directory\n2) Select your source code file\n3) Click \"Find files\"\n4) Click \"Go\"\nImportscrubber will crank away for a few seconds and then pop up a box telling you it's done.\nTo process multiple files, just pick a directory and toggle the \"recursive\" checkbox\nQuestions? Comments? Contact tomcopeland@users.sourceforge.net";
public static final String BREAK_EACH_PACKAGE = "Break for each package";
public static final String BREAK_TOP_PACKAGE = "Break for top package";
public static final String BREAK_NONE = "No breaks";... read more
...thanks to the folks at http://www.poolmart.com/. You won't see it unless you use Java Web Start to run Importscrubber, though... at least not yet until I can figure out how to get it in there somewhere else. :-)
...so if you have a copyright comment block above the package and import statements, it'll stay up there after Importscrubber finishes with the file. Thanks to Scott Willy and Trent Hoeppner for the suggestion.
...thanks to Scott Willy for the code. Also fixed a small UI bug.
...so you can have the import statements all crammed together, separated by top-level package, or separated by each package.
...and fixes some bugs in the scripts - thanks to Trent Hoeppner for finding these.
....for finding a typo in v1.3's "go.bat" file. The importscrubber.jar file is in the lib directory, not in the build directory - just change "build" to "lib" and it should work fine.
...like a command-line interface which is much, much faster when processing a lot of files. Also, the import statement processing is much improved due to suggestions from Uwe Hoffman and Marcus Dahm. Thanks!
...mainly, a package break tweak by Channing Walton.
...by implementing the package sorting feature suggested by Walter Channing. I did some minor cleanup on the GUI code, too.