diff options
author | Roel Spilker <r.spilker@gmail.com> | 2013-12-15 21:02:09 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2013-12-15 21:02:09 +0100 |
commit | 930b17b85be652405bf47752d1dbf4272afbace1 (patch) | |
tree | 10d50551c069fa6dd34d5857b7bf10516717cef8 /src/core/lombok/eclipse/handlers/HandleWither.java | |
parent | 324022b71903ae5a9a61e9e9a3d7eb92d3d9d96c (diff) | |
download | lombok-930b17b85be652405bf47752d1dbf4272afbace1.tar.gz lombok-930b17b85be652405bf47752d1dbf4272afbace1.tar.bz2 lombok-930b17b85be652405bf47752d1dbf4272afbace1.zip |
[configuration] Added the .getAbsoluteFileLocation() method to AST;
this now works properly (even with eclipse Linked Resources) in both
eclipse and javac. We will now use this feature to search for and apply
config files, which will apply hierarchically based on the directory of
the source file.
Diffstat (limited to 'src/core/lombok/eclipse/handlers/HandleWither.java')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleWither.java | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleWither.java b/src/core/lombok/eclipse/handlers/HandleWither.java index e114ab19..27fbc635 100644 --- a/src/core/lombok/eclipse/handlers/HandleWither.java +++ b/src/core/lombok/eclipse/handlers/HandleWither.java @@ -31,13 +31,11 @@ import java.util.Collections; import java.util.List; import lombok.AccessLevel; -import lombok.Lombok; import lombok.core.AST.Kind; import lombok.core.AnnotationValues; import lombok.core.TransformationsUtil; import lombok.eclipse.EclipseAnnotationHandler; import lombok.eclipse.EclipseNode; -import lombok.eclipse.EclipseProjectSearcher; import lombok.eclipse.handlers.EclipseHandlerUtil.FieldAccess; import lombok.experimental.Wither; @@ -58,7 +56,6 @@ import org.eclipse.jdt.internal.compiler.ast.ThisReference; import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration; import org.eclipse.jdt.internal.compiler.ast.TypeReference; import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; -import org.eclipse.jdt.internal.core.JavaProject; import org.mangosdk.spi.ProviderFor; @ProviderFor(EclipseAnnotationHandler.class) @@ -127,18 +124,6 @@ public class HandleWither extends EclipseAnnotationHandler<Wither> { AccessLevel level = annotation.getInstance().value(); if (level == AccessLevel.NONE || node == null) return; - /** hackery */ { - JavaProject project = annotationNode.getAst().getProject(); - if (project != null) try { - new EclipseProjectSearcher(project).findAllWithName("/java/lang/String.class"); - } catch (Exception e) { - throw Lombok.sneakyThrow(e); - } else { - Thread.dumpStack(); - System.err.println("****!!!!*!*!*!*!*!*!!*!********!!!! PROJECT IS NULL!!!!"); - } - } - List<Annotation> onMethod = unboxAndRemoveAnnotationParameter(ast, "onMethod", "@Setter(onMethod=", annotationNode); List<Annotation> onParam = unboxAndRemoveAnnotationParameter(ast, "onParam", "@Setter(onParam=", annotationNode); |