use of com.intellij.flex.uiDesigner.AssetCounter in project intellij-plugins by JetBrains.
the class AbcBlankMaker method fillAssetClassPoolGenerator.
private static void fillAssetClassPoolGenerator() throws IOException {
ByteArrayOutputStreamEx out = new ByteArrayOutputStreamEx(1024);
ClassPoolGenerator.generate(ClassPoolGenerator.Kind.IMAGE, 3, new AssetCounter(), out);
FileUtil.writeToFile(new File("/Users/develar/classPool.swf"), out.toByteArray());
}
use of com.intellij.flex.uiDesigner.AssetCounter in project intellij-plugins by JetBrains.
the class LibraryStyleInfoCollector method process.
public void process(Library library, boolean isNew) {
if (!isNew) {
assetCounter.append(library.assetCounter);
return;
}
try {
library.inheritingStyles = collectInherited(library.getFile());
} finally {
bytes.reset();
}
VirtualFile defaultsCssVirtualFile = library.getDefaultsCssFile();
if (defaultsCssVirtualFile != null) {
AssetCounter libAssetCounter = new AssetCounter();
byte[] data = new CssWriter(stringWriter, problemsHolder, libAssetCounter).write(defaultsCssVirtualFile, module);
if (data != null) {
library.defaultsStyle = data;
library.assetCounter = libAssetCounter;
assetCounter.append(libAssetCounter);
}
}
}
Aggregations