Examples of fromLocalFile()


Examples of org.eclipse.core.filesystem.IFileSystem.fromLocalFile()

        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

Examples of org.eclipse.core.filesystem.IFileSystem.fromLocalFile()

        // 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
Copyright © 2018 www.massapi.com. 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.