Examples of ICSSDocument


Examples of org.apache.flex.compiler.css.ICSSDocument

   
    void processMXMLStyle(IMXMLStyleNode styleNode, Context context)
    {
        // Ignore semanticProblems. They should have been collected during the semantic analysis phase already.
        final Collection<ICompilerProblem> problems = new HashSet<ICompilerProblem>();
        final ICSSDocument css = styleNode.getCSSDocument(problems);
        if (css == CSSDocumentCache.EMPTY_CSS_DOCUMENT)
            return;
       
        final IFlexProject flexProject = (IFlexProject)getProject();
View Full Code Here

Examples of org.apache.flex.compiler.css.ICSSDocument

     * added.
     * @throws Exception error
     */
    public ICSSCodeGenResult emitStyleDataClass(final IFlexProject project, final IABCVisitor abcVisitor) throws Exception
    {
        final ICSSDocument css = synthesisNormalizedCSS();
        //LoggingProfiler.onSynthesisCSS(css);
        final CSSReducer reducer = new CSSReducer(project, css, abcVisitor, this, true);
        final CSSEmitter emitter = new CSSEmitter(reducer);
        emitter.burm(css);
        return reducer;
View Full Code Here

Examples of org.apache.flex.compiler.css.ICSSDocument

    public Collection<ICSSDocument> getCSSFromSWCDefaultStyle()
    {
        final Collection<ICSSDocument> result = new ArrayList<ICSSDocument>();
        for (final ISWC swc : flexProject.getLibraries())
        {
            final ICSSDocument css = getDefaultCSS(swc.getSWCFile());
            if (css != null)
                result.add(css);
        }
        return result;
    }
View Full Code Here

Examples of org.apache.flex.compiler.css.ICSSDocument

        final CSSDocumentCache cssCache = swcManager.getCSSDocumentCache();
        for (final IFileSpecification themeFile : flexProject.getThemeFiles())
        {
            try
            {
                final ICSSDocument css;
                final String extension = FilenameUtils.getExtension(themeFile.getPath());
                if ("swc".equalsIgnoreCase(extension))
                {
                    final ISWC swc = swcManager.get(new File(themeFile.getPath()));
                    css = cssCache.getDefaultsCSS(
View Full Code Here

Examples of org.apache.flex.compiler.css.ICSSDocument

    @Override
    public ICSSDocument getCSS(String cssFilename)
    {
        final CSSDocumentCache cache = flexProject.getWorkspace().getSWCManager().getCSSDocumentCache();
        final CacheStoreKeyBase key = CSSDocumentCache.createKey(cssFilename);
        final ICSSDocument css = cache.get(key);
       
        if(CSSDocumentCache.EMPTY_CSS_DOCUMENT == css)
            return null;
        else
            return css;
View Full Code Here

Examples of org.apache.flex.compiler.css.ICSSDocument

    protected ICSSDocument createEntryValue(CacheStoreKeyBase key)
    {
        assert key instanceof CSSDocumentCacheKeyBase : "Expected 'CSSDocumentCacheKeyBase' but got " + key.getClass().getSimpleName();
        final CSSDocumentCacheKeyBase cacheKey = (CSSDocumentCacheKeyBase)key;

        ICSSDocument result = EMPTY_CSS_DOCUMENT;
        try
        {
            result = cacheKey.parse();
        }
        catch (IOException e)
View Full Code Here

Examples of org.apache.flex.compiler.css.ICSSDocument

    {
        final CacheStoreKeyBase key;
        final String cssFilename = getCompatibleModeCSSFilename(compatibilityVersion);
        key = createKey(swc, cssFilename);

        final ICSSDocument css = this.get(key);
        assert css != null : "ConcurrentCacheStoreBase never caches null value.";

        if (css == CSSDocumentCache.EMPTY_CSS_DOCUMENT)
        {
            if (compatibilityVersion != null)
View Full Code Here

Examples of org.apache.flex.compiler.css.ICSSDocument

         */
        @Override
        ICSSDocument parse() throws IOException
        {
            final ZipFile zipFile = new ZipFile(swc.getSWCFile(), ZipFile.OPEN_READ);
            ICSSDocument result = EMPTY_CSS_DOCUMENT;
            InputStream input = null;
            try
            {
                input = SWCReader.getInputStream(zipFile, cssFileName);
                if (input != null)
View Full Code Here

Examples of org.apache.flex.compiler.css.ICSSDocument

            final ActivatedStyleSheets activatedStyleSheets,
            final Collection<ICompilerProblem> problems)
    {
        for (final String defaultsCSSPath : getTargetSettings().getDefaultsCSSFiles())
        {
            final ICSSDocument defaultsCSSModel = cssManager.getCSS(defaultsCSSPath);
            if (defaultsCSSModel == null)
                problems.add(new FileNotFoundProblem(defaultsCSSPath));
            else
                activatedStyleSheets.addDefaultCSS(defaultsCSSModel);
        }
View Full Code Here

Examples of org.apache.flex.compiler.css.ICSSDocument

        for (final ICompilationUnit compilationUnit : compilationUnits)
        {
            if (compilationUnit.getCompilationUnitType() == UnitType.SWC_UNIT)
            {
                final File swcFile = new File(compilationUnit.getAbsoluteFilename());
                final ICSSDocument defaultCSS = cssManager.getDefaultCSS(swcFile);
                if (defaultCSS != null)
                    result.put(defaultCSS, swcFile);
            }
        }
        return result;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.