use of net.vtst.ow.closure.compiler.deps.JSExtern in project ow by vtst.
the class ClosureCompilerLaunchConfigurationDelegate method getExterns.
private List<SourceFile> getExterns(AbstractCompiler compiler, IProgressMonitor monitor, IReadOnlyStore store) throws CoreException {
List<JSExtern> externs = includesProvider.getExterns(compiler, monitor, store);
List<SourceFile> sourceFiles = new ArrayList<SourceFile>(externs.size());
for (JSExtern extern : externs) sourceFiles.add(extern.getSourceFile());
return sourceFiles;
}
use of net.vtst.ow.closure.compiler.deps.JSExtern in project ow by vtst.
the class JSIncludesProviderForBuilder method getExtern.
/* (non-Javadoc)
* @see net.vtst.ow.eclipse.js.closure.compiler.IJSIncludesProvider#getExtern(com.google.javascript.jscomp.AbstractCompiler, java.io.File)
*/
public JSExtern getExtern(AbstractCompiler compiler, File path) {
JSExtern extern = externs.get(path);
if (extern == null) {
extern = new JSExtern(path);
externs.put(path, extern);
}
return extern;
}
use of net.vtst.ow.closure.compiler.deps.JSExtern in project ow by vtst.
the class AbstractJSIncludesProvider method getExterns.
public List<JSExtern> getExterns(AbstractCompiler compiler, IProgressMonitor monitor, ArrayList<IProject> projects) throws CoreException {
List<JSExtern> result = new ArrayList<JSExtern>();
Set<File> keys = new HashSet<File>();
for (int i = projects.size() - 1; i >= 0; --i) {
addExterns(compiler, monitor, new ResourcePropertyStore(projects.get(i), OwJsClosurePlugin.PLUGIN_ID), keys, result);
}
return result;
}
use of net.vtst.ow.closure.compiler.deps.JSExtern in project ow by vtst.
the class DefaultExternsProvider method loadExterns.
/**
* @return The default externs, as a list of AST factories.
* @throws IOException
*/
private static List<JSExtern> loadExterns() throws IOException {
List<SourceFile> sourceFiles = getAsSourceFiles();
ArrayList<JSExtern> externs = new ArrayList<JSExtern>(sourceFiles.size());
for (SourceFile sourceFile : sourceFiles) externs.add(new JSExtern(sourceFile));
return externs;
}
Aggregations