diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-20 10:39:19 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-20 10:39:19 +0200 |
commit | 178f6285659fa56e48063b049ae4c5e0237e2aea (patch) | |
tree | 7447cf9cf56544a32eb32c1f8db613bdc0647813 | |
parent | aaf8547d91a540334419f2faebb897b327d535d8 (diff) | |
download | lombok-178f6285659fa56e48063b049ae4c5e0237e2aea.tar.gz lombok-178f6285659fa56e48063b049ae4c5e0237e2aea.tar.bz2 lombok-178f6285659fa56e48063b049ae4c5e0237e2aea.zip |
import lombok.*; wasn't working in eclipse. It is now.
Fixes issue #102.
-rw-r--r-- | doc/changelog.markdown | 1 | ||||
-rw-r--r-- | src/core/lombok/eclipse/EclipseAST.java | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/doc/changelog.markdown b/doc/changelog.markdown index 5aa39970..180ba4f3 100644 --- a/doc/changelog.markdown +++ b/doc/changelog.markdown @@ -15,6 +15,7 @@ Lombok Changelog * FEATURE: Three new annotations, `@NoArgsConstructor`, `@RequiredArgsConstructor` and `@AllArgsConstructor` have been added. These split off `@Data`'s ability to generate constructors, and also allow you to finetune what kind of constructor you want. In addition, by using these annotations, you can force generation of constructors even if you have your own. [Issue #79](http://code.google.com/p/projectlombok/issues/detail?id=79) * FEATURE: Constructors generated by lombok now include a `@java.beans.ConstructorProperties` annotation. This does mean these constructors no longer work in java 1.5, as this is a java 1.6 feature. The annotation can be suppressed by setting `suppressConstructorProperties` to `true` in a `@RequiredArgsConstructor` or `@AllArgsConstructor` annotation. [Issue #122](http://code.google.com/p/projectlombok/issues/detail?id=122) * BUGFIX: delombok now no longer forgets to remove `import lombok.AccessLevel;`. In netbeans, that import will no longer be flagged erroneously as being unused. [Issue #100](http://code.google.com/p/projectlombok/issues/detail?id=100) and [Issue #103](http://code.google.com/p/projectlombok/issues/detail?id=103) +* BUGFIX: While its discouraged, `import lombok.*;` is supposed to work in the vast majority of cases. In eclipse, however, it didn't. Now it does. [Issue #102](http://code.google.com/p/projectlombok/issues/detail?id=102) ### v0.9.2 "Hailbunny" (December 15th, 2009) * preliminary support for lombok on NetBeans! - thanks go to Jan Lahoda from NetBeans. [Issue #20](http://code.google.com/p/projectlombok/issues/detail?id=20) diff --git a/src/core/lombok/eclipse/EclipseAST.java b/src/core/lombok/eclipse/EclipseAST.java index 7ed83bfe..247e3058 100644 --- a/src/core/lombok/eclipse/EclipseAST.java +++ b/src/core/lombok/eclipse/EclipseAST.java @@ -73,7 +73,9 @@ public class EclipseAST extends AST<EclipseAST, EclipseNode, ASTNode> { if (cud.imports == null) return imports; for (ImportReference imp : cud.imports) { if (imp == null) continue; - imports.add(Eclipse.toQualifiedName(imp.getImportName())); + String qualifiedName = Eclipse.toQualifiedName(imp.getImportName()); + if ((imp.bits & ASTNode.OnDemand) != 0) qualifiedName += ".*"; + imports.add(qualifiedName); } return imports; } |