Examples of refreshAndFindFileByPath()


Examples of com.intellij.openapi.vfs.LocalFileSystem.refreshAndFindFileByPath()

    public void setupRootModel(ModifiableRootModel rootModel) throws ConfigurationException {
        String moduleRootPath = getContentEntryPath();
        if (moduleRootPath != null) {
            LocalFileSystem localFileSystem = LocalFileSystem.getInstance();
            VirtualFile moduleContentRoot = localFileSystem.refreshAndFindFileByPath(FileUtil.toSystemIndependentName(moduleRootPath));
            if (moduleContentRoot != null) {
                ContentEntry contentEntry = rootModel.addContentEntry(moduleContentRoot);
                List<Pair<String, String>> sourcePaths = getSourcePaths();
                if (sourcePaths != null) {
                    for (Pair<String, String> sourcePath : sourcePaths) {
View Full Code Here

Examples of com.intellij.openapi.vfs.LocalFileSystem.refreshAndFindFileByPath()

            if (moduleContentRoot != null) {
                ContentEntry contentEntry = rootModel.addContentEntry(moduleContentRoot);
                List<Pair<String, String>> sourcePaths = getSourcePaths();
                if (sourcePaths != null) {
                    for (Pair<String, String> sourcePath : sourcePaths) {
                        VirtualFile sourceRoot = localFileSystem.refreshAndFindFileByPath(FileUtil.toSystemIndependentName(sourcePath.first));
                        if (sourceRoot != null) {
                            contentEntry.addSourceFolder(sourceRoot, false, sourcePath.second);
                        }
                    }
                }
View Full Code Here

Examples of com.intellij.openapi.vfs.LocalFileSystem.refreshAndFindFileByPath()

            @Override
            public void run() {
                final LocalFileSystem localFileSystem = LocalFileSystem.getInstance();

                localFileSystem.refresh(false);
                localFileSystem.refreshAndFindFileByPath(cssDestFile.getAbsolutePath());

                final VirtualFile virtualCssRoot = localFileSystem.findFileByIoFile(new File(cssDirectory.getPath()));

                if (virtualCssRoot != null)
                    virtualCssRoot.refresh(false, true);
View Full Code Here

Examples of com.intellij.openapi.vfs.LocalFileSystem.refreshAndFindFileByPath()

    }

    final String moduleRootPath = getContentEntryPath();
    if (moduleRootPath != null) {
      final LocalFileSystem lfs = LocalFileSystem.getInstance();
      VirtualFile moduleContentRoot = lfs.refreshAndFindFileByPath(FileUtil.toSystemIndependentName(moduleRootPath));
      if (moduleContentRoot != null) {
        final ContentEntry contentEntry = rootModel.addContentEntry(moduleContentRoot);
        final List<Pair<String,String>> sourcePaths = getSourcePaths();
        if (sourcePaths != null) {
          for (final Pair<String, String> sourcePath : sourcePaths) {
View Full Code Here

Examples of com.intellij.openapi.vfs.LocalFileSystem.refreshAndFindFileByPath()

      if (moduleContentRoot != null) {
        final ContentEntry contentEntry = rootModel.addContentEntry(moduleContentRoot);
        final List<Pair<String,String>> sourcePaths = getSourcePaths();
        if (sourcePaths != null) {
          for (final Pair<String, String> sourcePath : sourcePaths) {
            final VirtualFile sourceRoot = lfs.refreshAndFindFileByPath(FileUtil.toSystemIndependentName(sourcePath.first));
            if (sourceRoot != null) {
              contentEntry.addSourceFolder(sourceRoot, false, sourcePath.second);
            }
          }
        }
View Full Code Here

Examples of com.intellij.openapi.vfs.ex.temp.TempFileSystem.refreshAndFindFileByPath()

            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
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.