Package com.intellij.openapi.vfs.ex.temp

Examples of com.intellij.openapi.vfs.ex.temp.TempFileSystem


        if (document == null || document.getText() == null) {
            return null;
        }

        try {
            final TempFileSystem tempFileSystem = TempFileSystem.getInstance();

            VirtualFile rootFile = tempFileSystem.findFileByPath("/junitGenerator");
            if (rootFile == null || !rootFile.exists()) {
                rootFile = tempFileSystem.findFileByPath("/").createChildDirectory(this, "junitGenerator");
            }
            VirtualFile theFile = rootFile.createChildData(this, UUID.randomUUID().toString() + ".vm");
            theFile.setBinaryContent(this.document.getText().getBytes());
            theFile = tempFileSystem.refreshAndFindFileByPath(theFile.getPath());
            return theFile;
        } catch (IOException e) {
            Logger.getInstance(EditorCreator.class).warn(e);
        }
        return null;
View Full Code Here

TOP

Related Classes of com.intellij.openapi.vfs.ex.temp.TempFileSystem

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.