aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/apt/HandleANY_ecj.java
blob: 587444d9a86d3f6b54186dd2a25f39323848808d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
	}
}