Package org.eclipse.core.filesystem

Examples of org.eclipse.core.filesystem.IFileSystem


    }
    return locationInFileSystem(path);
  }

  private String locationInFileSystem(IPath path) {
    IFileSystem fileSystem = EFS.getLocalFileSystem();
    IFileInfo fileInfo = fileSystem.getStore(path).fetchInfo();
    if (!fileInfo.isDirectory()) {
      return null;
    }
    return value;
  }
View Full Code Here


        tempDir.mkdirs();
        if (tempFile == null) {
          tempFile = File.createTempFile("camelContext-", ".xml", tempDir);
        }
        // lets create the IFile from it...
        IFileSystem fileSystem = EFS.getLocalFileSystem();
        IFileStore fileStore = fileSystem.fromLocalFile(tempFile);

        String xml = contextNode.getXmlString();
        IOUtils.writeText(tempFile, xml);

        return new CamelFileStoreEditorInput(fileStore, contextNode);
View Full Code Here

       
        // now create the file which will hold the camel context
        tempFile = new File(tempDir, fileUnderDebug.substring(fileUnderDebug.lastIndexOf(File.separatorChar)+1));
       
        // lets create the IFile from it...
        IFileSystem fileSystem = EFS.getLocalFileSystem();
        IFileStore fileStore = fileSystem.fromLocalFile(tempFile);

        // retrieve the contents from the debugger
        String xml = debugger.getContextXmlDump();
        // and write the contents to the file
        if (xml != null) IOUtils.writeText(tempFile, xml);
View Full Code Here

TOP

Related Classes of org.eclipse.core.filesystem.IFileSystem

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.