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