Package org.apache.flex.compiler.workspaces

Examples of org.apache.flex.compiler.workspaces.IWorkspace


     */
    public IStyleDefinition resolveStyle(IClassDefinition classDefinition, String styleName)
    {
        Iterator<IClassDefinition> classIterator = classDefinition.classIterator(this, true);

        IWorkspace w = getWorkspace();
        while (classIterator.hasNext())
        {
            IClassDefinition c = classIterator.next();
            IStyleDefinition styleDefinition = c.getStyleDefinition(w, styleName);
            if (styleDefinition != null)
View Full Code Here


     * @param effectName The name of the effect to search for.
     * @return An effect definition.
     */
    public IEffectDefinition resolveEffect(IClassDefinition classDefinition, String effectName)
    {
        IWorkspace w = getWorkspace();

        Iterator<IClassDefinition> classIterator = classDefinition.classIterator(this, true);
        while (classIterator.hasNext())
        {
            IClassDefinition c = classIterator.next();
View Full Code Here

        context.addInstruction(OP_setlocal3);
       
        // now local3= array of deferredInstanceFromFunctionName
       
        // make a dependency on the sdk class DeferredInstanceFromFunction
        IWorkspace workspace = project.getWorkspace();
        IResolvedQualifiersReference ref = ReferenceFactory.packageQualifiedReference(workspace, deferredInstanceFromFunctionClass);
      
        IScopedNode scopedNode = anInstanceNode.getContainingScope();
        IASScope iscope = scopedNode.getScope();
        ASScope scope = (ASScope)iscope;
View Full Code Here

    public IDefinition getDefinition()
    {
        ICommonClassNode decoratedClassNode = (ICommonClassNode)getAncestorOfType(ICommonClassNode.class);
        if (decoratedClassNode == null)
            return null;
        IWorkspace workspace = getWorkspace();
        IClassDefinition decoratedClassDefinition = decoratedClassNode.getDefinition();
        assert decoratedClassDefinition != null;
        return decoratedClassDefinition.getEffectDefinition(workspace, getName());
    }
View Full Code Here

            return null;
       
        IClassDefinition decoratedClassDefinition = decoratedClassNode.getDefinition();
        assert decoratedClassDefinition != null;

        IWorkspace workspace = getWorkspace();
        return decoratedClassDefinition.getEventDefinition(workspace, getName());
    }
View Full Code Here

        if (name == "")
            return null;

        IReference typeRef = null;

        IWorkspace w = getWorkspace();

        switch (getRefType())
        {
            case PACKAGE_QUALIFIED:
            {
View Full Code Here

    }

    @Override
    public IScopedNode getScopeNode()
    {
        IWorkspace w = getWorkspace();
        return (IScopedNode)scopedNodeRef.getNode(w, this);
    }
View Full Code Here

                return containingScope.getNamespaceSetImpl(project);
            }
        }

        CompilerProject compilerProject = (CompilerProject)project;
        IWorkspace workspace = compilerProject.getWorkspace();

        Set<INamespaceDefinition> result = new LinkedHashSet<INamespaceDefinition>();

        // First add the imports, use namespaces, etc from this scope
        this.addLocalImportsToNamespaceSet(workspace, result);
View Full Code Here

    }
   
    @Override
    public boolean applyToProject(IFlexProject project)
    {
        final IWorkspace workspace = project.getWorkspace();
        boolean success = processConfiguration();
        workspace.startIdleState();
        try
        {
           
           
            if (configuration == null)
                return false;
           
            if (project instanceof FlexProject)
            {
                FlexProject flexProject = (FlexProject)project;
   
                FlexProjectConfigurator.configure(flexProject, configuration);
                setupCompatibilityVersion(flexProject);
                setupConfigVariables(flexProject);
                setupLocaleSettings(flexProject);
                setupServices(flexProject);
                setupThemeFiles(flexProject);
                setupFlex(flexProject);
                setupCodegenOptions(flexProject);
            }
           
            project.setRuntimeSharedLibraryPath(getRSLSettingsFromConfiguration(configuration));
   
            if (!setupProjectLibraries(project))
                success = false;
           
            setupNamespaces(project);
        }
        finally
        {
            workspace.endIdleState(IWorkspace.NIL_COMPILATIONUNITS_TO_UPDATE);
        }
        if (!setupSources(project))
            success = false;
        return success;
    }
View Full Code Here

        ASFileScope fileScope = containingScope.getFileScope();
        if (fileScope == null)
            return null;

        // Get the workspace.
        IWorkspace workspace = fileScope.getWorkspace();
        assert workspace != null;

        // Use the stored NodeReference to get the original node.
        IASNode node = nodeRef.getNode(workspace, containingScope);
        if (!(node instanceof IMetaTagNode))
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.workspaces.IWorkspace

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.