Package flex2.compiler.io

Examples of flex2.compiler.io.VirtualFile


          }
          else
          {
            // use Source.getName() to construct the new VirtualFile name
            String n = source.getName().replace('\\', '/') + ":" + script.getXmlLineNumber() + "," + script.getEndXmlLineNumber();
            VirtualFile f = new TextFile(script.getText(), n, source.getParent(), MimeMappings.AS, source.getLastModified());

                        // line number map is for error reporting, so the names must come from error reporting...
                        LineNumberMap m = new LineNumberMap(source.getNameForReporting(), n);

                        m.put(script.getXmlLineNumber(), 1, (script.getEndXmlLineNumber() - script.getXmlLineNumber()));
View Full Code Here


  private void addPathElementToListAsVirtualFile(String pathElement, ArrayList<VirtualFile> list, ConfigurationValue cv)
    throws ConfigurationException
  {
    try
    {
      VirtualFile vf = getVirtualFile(pathElement, cv);
      list.add(vf);
    }
    catch(ConfigurationException e)
    {
      if (cv == null)
View Full Code Here

  private void checkNewSourcePathElements(VirtualFile[] newPathElements, ConfigurationValue cv) throws ConfigurationException
  {
        for (int i = 0; i < newPathElements.length; i++)
    {
      VirtualFile pathElement = newPathElements[i];
      if (!pathElement.isDirectory())
      {
        if (cv == null)
        {
          throw new ConfigurationException.NotDirectory(
              pathElement.getName(), null, null, -1);
        }
        else
        {
          throw new ConfigurationException.NotDirectory(
              pathElement.getName(), cv.getVar(), cv.getSource(), cv.getLine());
        }
      }
    }
  }
View Full Code Here

        int i = 0;
        for (Iterator it = paths.iterator(); it.hasNext();)
        {
            String path = (String) it.next();
            addThemeName(path);
            VirtualFile theme = ConfigurationPathResolver.getVirtualFile( path,
                                                                          configResolver,
                                                                          cv );
            if (theme == null)
            {
                throw new ConfigurationException.ConfigurationIOError( path, cv.getVar(), cv.getSource(), cv.getLine() );
View Full Code Here

       
        // verify and add the paths given
        for (Iterator it = paths.iterator(); it.hasNext();)
        {
            final String path = (String) it.next();
            VirtualFile css = ConfigurationPathResolver.getVirtualFile(path,
                                                                       configResolver,
                                                                       cv);
            if (css == null)
            {
                throw new ConfigurationException.ConfigurationIOError(path,
View Full Code Here

            // Create a list of LocalFile paths and remove the LocalFiles "sources".
            List<String> localPathList = new ArrayList<String>();

            for (Iterator<VirtualFile> iterator = sources.iterator(); iterator.hasNext();)
            {
                VirtualFile virtualFile = iterator.next();

                if (virtualFile instanceof LocalFile)
                {
                    localPathList.add(virtualFile.getName());
                    iterator.remove();
                }
            }

            // Convert the localPathList to an Array
View Full Code Here

    data.swcFileChecksums = new HashMap<String, Long>();
    for (Iterator iter = swcContext.getFiles().entrySet().iterator(); iter.hasNext();)
    {
      Map.Entry entry = (Map.Entry)iter.next();
      String filename = (String)entry.getKey();
      VirtualFile file = (VirtualFile)entry.getValue();
      data.swcFileChecksums.put(filename, new Long(file.getLastModified()));
    }

        for (VirtualFile themeStyleSheet : swcContext.getThemeStyleSheets())
        {
            data.swcFileChecksums.put(themeStyleSheet.getName(),
View Full Code Here

            if (!filename.equals(Swc.CATALOG_XML) &&
                !filename.equals(Swc.LIBRARY_SWF))
            {
                Long dataFileLastModified = (Long)entry.getValue();
                Long swcFileLastModified = null;
                VirtualFile swcFile = (VirtualFile)swcFiles.get(filename);
                if (swcFile != null)
                {
                    swcFileLastModified = new Long(swcFile.getLastModified());
                }
       
                if (!dataFileLastModified.equals(swcFileLastModified))
                {
                    if (Trace.swcChecksum)
View Full Code Here

                String ns = entry.getKey();
                List<VirtualFile> files = entry.getValue();
                Iterator<VirtualFile> filesIterator = files.iterator();
                while (filesIterator.hasNext())
                {
                    VirtualFile file = filesIterator.next();
                    ManifestParser.parse(ns, file, mappings);
                }
            }
        }
        return mappings;
View Full Code Here

            }

            // collect the names of all the update file includes...
            for (Iterator j = source.getUpdatedFileIncludes(); j != null && j.hasNext();)
            {
                VirtualFile f = (VirtualFile) j.next();
                includeUpdated.add(f.getNameForReporting());
            }

            // register QName --> VirtualFile.getName()
            for (QName qName : u.topLevelDefinitions)
            {
View Full Code Here

TOP

Related Classes of flex2.compiler.io.VirtualFile

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.