void setContext(Context context) { log = Log.instance(context); options = Options.instance(context); lint = Lint.instance(context); fsInfo = FSInfo.instance(context); config = CompilerConfig.instance(context); }
public FSInfo createFileSystemView(final String fileSystem, final Browser browser) { final FSInfo fsInfo = fsInfoProvider.get(); fsInfo.init(fileSystem, browser); viewByFileSystemName.put(fileSystem, fsInfo); return fsInfo; }
/** Is this the name of an archive file? */ private boolean isArchive(File file) { String n = file.getName().toLowerCase(); return fsInfo.isFile(file) && (n.endsWith(".jar") || n.endsWith(".zip")); }