Package org.apache.flex.utils

Examples of org.apache.flex.utils.DirectoryID


        for (DirectoryID oldPath : oldPaths.keySet())
        {
            if (!newPaths[i].isDirectory())
                return false;       // all the old paths are directories. If this isn't then it must not be equal
           
            DirectoryID newDir = new DirectoryID( newPaths[i] );
           
            if (!(newDir.equals(oldPath)))
                return false;
            i++;
        }

        return true;
View Full Code Here


                problems.add(new NonDirectoryInSourcePathProblem(sourcePathEntry));
            }
            else
            {

                DirectoryID directoryId = new DirectoryID(sourcePathEntry);
                if (!newSourcePaths.containsKey(directoryId))
                {
                    HashSet<QNameFile> filesInPath = new HashSet<QNameFile>();
                    newSourcePaths.put(directoryId, filesInPath);
View Full Code Here

        ArrayList<QNameFile> qNameFiles = new ArrayList<QNameFile>(1);
        int order = 0;
        for (Map.Entry<DirectoryID, HashSet<QNameFile>> sourcePathEntry : sourcePaths.entrySet())
        {
            DirectoryID dir = sourcePathEntry.getKey();
            String qname = computeQName(dir.getFile(), f);
            if (qname != null)
            {
                String locale = null;
                if(compilerProject instanceof IFlexProject)
                    locale = ((IFlexProject)compilerProject).getResourceLocale(dir.getFile().getAbsolutePath());
               
                QNameFile newQNameFile = new QNameFile(qname, f, locale, order);
                sourcePathEntry.getValue().add(newQNameFile);
                qNameFiles.add(newQNameFile);
            }
View Full Code Here

    private void removeQNames(File f)
    {
        for (Map.Entry<DirectoryID, HashSet<QNameFile>> sourcePathEntry : sourcePaths.entrySet())
        {
            DirectoryID dir = sourcePathEntry.getKey();
            String qname = computeQName(dir.getFile(), f);
            if (qname != null)
            {
                for (Iterator<QNameFile> iter = sourcePathEntry.getValue().iterator(); iter.hasNext();)
                {
                    QNameFile qNameFile = iter.next();
View Full Code Here

    {
        ArrayList<QNameFile> qNameFiles = new ArrayList<QNameFile>(1);
        int order = 0;
        for (Map.Entry<DirectoryID, HashSet<QNameFile>> sourcePathEntry : sourcePaths.entrySet())
        {
            DirectoryID dir = sourcePathEntry.getKey();
            String qname = computeQName(dir.getFile(), f);
            if (qname != null)
            {
                String locale = null;
                if(compilerProject instanceof IFlexProject)
                    locale = ((IFlexProject)compilerProject).getResourceLocale(dir.getFile().getAbsolutePath());
               
                QNameFile newQNameFile = new QNameFile(qname, f, locale, order);
                sourcePathEntry.getValue().add(newQNameFile);
                qNameFiles.add(newQNameFile);
            }
View Full Code Here

TOP

Related Classes of org.apache.flex.utils.DirectoryID

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.