Search in sources :

Example 1 with CssWriter

use of com.intellij.flex.uiDesigner.css.CssWriter 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);
        }
    }
}
Also used : VirtualFile(com.intellij.openapi.vfs.VirtualFile) AssetCounter(com.intellij.flex.uiDesigner.AssetCounter) CssWriter(com.intellij.flex.uiDesigner.css.CssWriter)

Aggregations

AssetCounter (com.intellij.flex.uiDesigner.AssetCounter)1 CssWriter (com.intellij.flex.uiDesigner.css.CssWriter)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1