|
From: <ba...@ge...> - 2001-05-27 10:24:27
|
I'd like to mention two plugins I've written. The first is a pretty useless one. But it's documentation is a tutorial on writing a plugin. This is mainly because my poor internet link and failure to read meant I missed the three example plugins. So I used the JavaStyle plugin as an example. It's named Food. (As I was hungry and it replaces the current file with the word "Foo'd". ) The second was my real aim. I've called it ImportFixer. When run it analyses the current file and inserts the import statements for the classes used in the file. It uses the classpath to find the classes, and ignores ones it can't deal with. The first time it's used you'll get a slight hit as it builds up an index. It outputs the import statements in the order mentioned in the sun standard. I'm sure it has bugs and unpleasantrys, but hopefully it won't be too evil. I'm aware that it will probably wipe out other import statements that aren't necessary and that it will change something like java.sql.Date to java.util.Date if the latter is earlier in the classpath. Both are downloadable from my website: http://www.generationjava.com/java/JEdit.shtml I hope they prove of use, Bayard ba...@ge... http://www.generationjava.com |