Today we were looking at a feature request to abbreviate imports. The
issue explains it all:
http://code.google.com/p/projectlombok/issues/detail?id=290
The question was if we could somehow reduce the boilerplate in
situations where you use 2 classes in the same source file whose
simple name is identical (e.g. java.util.List and java.awt.List). If
you use these frequently, we can see that it can become quite
bothersome.
Using the technique described in:
http://groups.google.com/group/project-lombok/t/2c1b4249acd1286
We can introduce the following syntax:
@Import(ulist = java.util.List, awt = java.awt)
class Foo {
ulist bar = new ulist();
awt.List baz = new awt.List();
}
We're still investigating if we can let Eclipse auto-complete
appropriately and since this is quite a novel way of transforming the
file, we're going to make this a Beta feature (it might be dropped in
the future if it proves too dodgy).
what do you think?