Package org.apache.flex.compiler.clients.problems

Examples of org.apache.flex.compiler.clients.problems.ProblemQuery


    protected MXMLJSC(IBackend backend)
    {
        JSSharedData.backend = backend;
        workspace = new Workspace();
        project = new FlexJSProject(workspace);
        problems = new ProblemQuery();
        JSSharedData.OUTPUT_EXTENSION = backend.getOutputExtension();
        JSSharedData.workspace = workspace;
        asFileHandler = backend.getSourceFileHandlerInstance();
    }
View Full Code Here


                projectConfigurator.setConfiguration(FlashBuilderConfigurator.computeFlashBuilderArgs(args, getTargetType().getExtension()),
                        ICompilerSettingsConstants.FILE_SPECS_VAR);
            else
                projectConfigurator.setConfiguration(args, ICompilerSettingsConstants.FILE_SPECS_VAR);
            projectConfigurator.applyToProject(project);
            problems = new ProblemQuery(
                    projectConfigurator.getCompilerProblemSettings());

            config = projectConfigurator.getConfiguration();
            configBuffer = projectConfigurator.getConfigurationBuffer();
            problems.addAll(projectConfigurator.getConfigurationProblems());
View Full Code Here

    public Optimizer()
    {
        workspace = new Workspace();
        project = new FlexProject(workspace);
        problems = new ProblemQuery();
    }
View Full Code Here

        int problemCount = 0;
       
        //  Set up a problem query object to check the result of the compilation.
        //  Some problems found aren't ever relevant to ASC, and some depend on
        //  the switches passed on the command line.
        problemQuery = new ProblemQuery();
        problemQuery.setShowProblemByClass(MultipleExternallyVisibleDefinitionsProblem.class, false);
        problemQuery.setShowProblemByClass(UnfoundPropertyProblem.class, false);
        problemQuery.setShowStrictSemantics(useStaticSemantics());   
        problemQuery.setShowWarnings(getShowWarnings());
View Full Code Here

    public MXMLC()
    {
        workspace = new Workspace();
        project = new FlexProject(workspace);
        problems = new ProblemQuery();
    }
View Full Code Here

                                                        getConfigurationDefaultVariable());
            else
                projectConfigurator.setConfiguration(args, getConfigurationDefaultVariable());
            projectConfigurator.applyToProject(project);
            getTargetSettings();    // get targetSettings here to flush out any configuration problems.
            problems = new ProblemQuery(projectConfigurator.getCompilerProblemSettings());
           
            // Get the configuration and configBuffer which are now initialized.
            config = projectConfigurator.getConfiguration();
            Messages.setLocale(config.getToolsLocale());
            configBuffer = projectConfigurator.getConfigurationBuffer();
View Full Code Here

    public SWCDepends()
    {
        workspace = new Workspace();
        project = new FlexProject(workspace);
        problems = new ProblemQuery();
    }
View Full Code Here

        {
            ConfigurationPathResolver resolver = new ConfigurationPathResolver(System.getProperty("user.dir"));
            projectConfigurator.setConfigurationPathResolver(resolver);
            projectConfigurator.setConfiguration(args, getConfigurationDefaultVariable());
            projectConfigurator.applyToProject(project);
            problems = new ProblemQuery(projectConfigurator.getCompilerProblemSettings());
           
            // Get the configuration and configBuffer which are now initialized.
            config = (DependencyConfiguration)projectConfigurator.getConfiguration();
            Messages.setLocale(config.getToolsLocale());
            configBuffer = projectConfigurator.getConfigurationBuffer();
View Full Code Here

                    break;
                }
            }
        }
        */
        ProblemQuery pq = mxmlc.getProblems();
        List<ICompilerProblem> probs = pq.getProblems();
        for (ICompilerProblem prob : probs)
        {
            Class aClass = prob.getClass();
            Annotation[] annotations = aClass.getAnnotations();

View Full Code Here

        {
            swf = (SWF)swfReader.readFrom(
                    new BufferedInputStream(url.openStream()),
                    path);

            ProblemQuery problemQuery = new ProblemQuery();
            problemQuery.addAll(swfReader.getProblems());
            if (!problemQuery.hasErrors())
            {
                dumpHeader(swf.getHeader());
                final ImmutableList<ITag> tags = ImmutableList.copyOf(swfReader.iterator());
                currentFrameIndex = 0;
                if (swf.getFrameCount() > 0)
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.clients.problems.ProblemQuery

Copyright © 2018 www.massapicom. 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.