1 19 package org.netbeans.modules.java.source.builder; 20 21 import com.sun.tools.javac.tree.JCTree.JCCompilationUnit; 22 import com.sun.tools.javac.util.Context; 23 import org.netbeans.modules.java.source.engine.BuildProgress; 24 25 28 public class Enter extends com.sun.tools.javac.comp.Enter { 29 BuildProgress progressMonitor; 30 31 35 public static void register(final Context context) { 36 context.put(enterKey, new Context.Factory<com.sun.tools.javac.comp.Enter>() { 37 public Enter make() { 38 return new Enter(context); 39 } 40 }); 41 } 42 43 44 protected Enter(Context context) { 45 super(context); 46 } 47 48 void setBuildProgress(BuildProgress progressMonitor) { 49 this.progressMonitor = progressMonitor; 50 } 51 52 @Override 53 public void visitTopLevel(JCCompilationUnit tree) { 54 super.visitTopLevel(tree); 55 progressMonitor.treeEntered(); 56 } 57 } 58 | Popular Tags |