1 19 package org.netbeans.api.java.source; 20 21 import com.sun.source.tree.Tree; 22 import org.apache.lucene.store.FSDirectory; 23 import org.netbeans.api.java.source.transform.Transformer; 24 import org.netbeans.modules.java.source.ActivatedDocumentListener; 25 26 30 public final class SourceUtilsTestUtil2 { 31 32 private SourceUtilsTestUtil2() { 33 } 34 35 public static void ignoreCompileRequests() { 36 ActivatedDocumentListener.IGNORE_COMPILE_REQUESTS = true; 37 } 38 39 public static <R, P> void run(WorkingCopy wc, Transformer<R, P> t) { 40 wc.run(t); 41 } 42 43 public static <R, P> void run(WorkingCopy wc, Transformer<R, P> t, Tree tree) { 44 wc.run(t, tree); 45 } 46 47 public static void disableLocks() { 48 FSDirectory.setDisableLocks(true); 49 } 50 51 } 52 | Popular Tags |