aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/apt/HandleANY_ecj.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/lombok/apt/HandleANY_ecj.java')
-rw-r--r--src/lombok/apt/HandleANY_ecj.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lombok/apt/HandleANY_ecj.java b/src/lombok/apt/HandleANY_ecj.java
new file mode 100644
index 00000000..e5a1792a
--- /dev/null
+++ b/src/lombok/apt/HandleANY_ecj.java
@@ -0,0 +1,18 @@
+package lombok.apt;
+
+import java.lang.annotation.Annotation;
+
+import javax.lang.model.element.Element;
+
+import javax.tools.Diagnostic;
+
+public class HandleANY_ecj extends HandlerForCompiler<Annotation> {
+ @Override public void handle(Element element, Annotation annotation) throws Exception {
+ //TODO: We should find eclipse's eclipse.ini file and patch us in as a javaagent and bootclasspath/a.
+ //Though, we should probably use reflection to find eclipse's SWT system and generate a popup dialog for
+ //confirmation.
+
+ String msg = "You'll need to install the eclipse patch. See http://lombok.github.org/ for more info.";
+ processEnv.getMessager().printMessage(Diagnostic.Kind.WARNING, msg, element);
+ }
+}