diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-11-29 20:53:54 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-11-29 20:53:54 +0100 |
commit | 29c2ba1bbba7393423463b6c92da2068b6fea7bb (patch) | |
tree | 00b6367b356cc2d53dbd19539b3e89288d4b9855 /src/netbeansAgent/lombok/netbeans/agent/PatchFixes.java | |
parent | 64f47685ca8fee174d87688e8c5d33de4c153c9b (diff) | |
download | lombok-29c2ba1bbba7393423463b6c92da2068b6fea7bb.tar.gz lombok-29c2ba1bbba7393423463b6c92da2068b6fea7bb.tar.bz2 lombok-29c2ba1bbba7393423463b6c92da2068b6fea7bb.zip |
work in progress
Diffstat (limited to 'src/netbeansAgent/lombok/netbeans/agent/PatchFixes.java')
-rw-r--r-- | src/netbeansAgent/lombok/netbeans/agent/PatchFixes.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/netbeansAgent/lombok/netbeans/agent/PatchFixes.java b/src/netbeansAgent/lombok/netbeans/agent/PatchFixes.java index 26ddd1e4..c12e6dad 100644 --- a/src/netbeansAgent/lombok/netbeans/agent/PatchFixes.java +++ b/src/netbeansAgent/lombok/netbeans/agent/PatchFixes.java @@ -5,6 +5,8 @@ import java.lang.reflect.Method; import javax.lang.model.element.Element; +import org.netbeans.api.java.source.ClasspathInfo; + import com.sun.source.tree.CompilationUnitTree; import com.sun.source.tree.Tree; import com.sun.source.util.SourcePositions; @@ -63,8 +65,8 @@ public class PatchFixes { //Contributed by Jan Lahoda (jlahoda@netbeans.org) //Turned into a patch script by rzwitserloot. //see http://code.google.com/p/projectlombok/issues/detail?id=20#c3 - public static void addTaskListenerWhenCallingJavac() { - TaskListenerProvider p = /* Lookup.getDefault().lookup(TLP.class) */; + public static void addTaskListenerWhenCallingJavac(Context context, ClasspathInfo cpInfo) { + TaskListenerProvider p = /* Lookup.getDefault().lookup(TaskListenerProvider.class) */; if (p != null) { TaskListener l = p.create(context, cpInfo); task.setTaskListener(l); |