1 19 20 package org.netbeans.modules.java.source.usages; 21 22 import javax.tools.JavaFileManager; 23 import org.netbeans.api.java.classpath.ClassPath; 24 import org.netbeans.api.java.source.ClasspathInfo; 25 import org.netbeans.modules.java.preprocessorbridge.spi.JavaFileFilterImplementation; 26 import org.openide.ErrorManager; 27 import org.openide.filesystems.FileObject; 28 29 33 public abstract class ClasspathInfoAccessor { 34 35 static { 36 try { 37 Class.forName("org.netbeans.api.java.source.ClasspathInfo",true,ClasspathInfoAccessor.class.getClassLoader()); 38 } catch (ClassNotFoundException cnfe) { 39 ErrorManager.getDefault().notify(cnfe); 40 } 41 } 42 43 public static ClasspathInfoAccessor INSTANCE; 44 45 46 public abstract JavaFileManager getFileManager(ClasspathInfo cpInfo); 47 48 public abstract ClasspathInfo create (FileObject fo, JavaFileFilterImplementation filter, boolean backgroundCompilation, boolean ignoreExcludes); 49 50 public abstract ClasspathInfo create (ClassPath bootPath, ClassPath compilePath, ClassPath sourcePath, JavaFileFilterImplementation filter, 51 boolean backgroundCompilation, boolean ignoreExcludes); 52 53 } 54 | Popular Tags |