Examples of refreshAndFindFileByUrl()


Examples of com.intellij.openapi.vfs.VirtualFileManager.refreshAndFindFileByUrl()

            url = pUrl;
        }

        public void run() {
            final VirtualFileManager vfm = VirtualFileManager.getInstance();
            file = vfm.refreshAndFindFileByUrl(url);
        }

        public VirtualFile getFile() {
            return file;
        }
View Full Code Here

Examples of com.intellij.openapi.vfs.VirtualFileManager.refreshAndFindFileByUrl()

     * @see java.lang.Thread#run()
     */
    public void run() {
        try {
            final VirtualFileManager manager = VirtualFileManager.getInstance();
            VirtualFile virtualFile = manager.refreshAndFindFileByUrl(VfsUtil.pathToUrl(this.outputFile));
            int overwriteInd = JOptionPane.NO_OPTION;

            if (virtualFile != null && virtualFile.exists()) {
                log.debug("file exists so prompt the user for merge request");
                overwriteInd =
View Full Code Here

Examples of com.intellij.openapi.vfs.VirtualFileManager.refreshAndFindFileByUrl()

                            //ignore
                        }
                    }
                }
                log.info("Created File");
                virtualFile = manager.refreshAndFindFileByUrl(VfsUtil.pathToUrl(this.outputFile));
            }

            final VirtualFile fileToOpen = virtualFile;
            if (JOptionPane.NO_OPTION == overwriteInd && virtualFile != null) {
                //now open the file
View Full Code Here

Examples of com.intellij.openapi.vfs.VirtualFileManager.refreshAndFindFileByUrl()

      if (virtualFile == null)
        return PsiReference.EMPTY_ARRAY;
      String pluginDirPath = FileSystem.getPluginDir(psiElement.getContainingFile().getVirtualFile());
      String controllerName = cakeConfig.getBetweenDirectoryPath(virtualFile.getName());
      String filePath = cakeConfig.getPath(CakeIdentifier.View, controllerName, jumpFileName, pluginDirPath);
      virtualFile = virtualFileManager.refreshAndFindFileByUrl(FileSystem.getAppPath(psiElement.getContainingFile().getVirtualFile()) + filePath);
      if (virtualFile == null) {
        if (pluginDirPath != null) {
          // Plugin Directory element
          VirtualFile pluginDir = virtualFileManager.refreshAndFindFileByUrl("file://" + psiElement.getProject().getBasePath() + "/app/" + cakeConfig.cakeVersionAbsorption.get(CakeIdentifier.Plugin));
          if (pluginDir == null)
View Full Code Here

Examples of com.intellij.openapi.vfs.VirtualFileManager.refreshAndFindFileByUrl()

      String filePath = cakeConfig.getPath(CakeIdentifier.View, controllerName, jumpFileName, pluginDirPath);
      virtualFile = virtualFileManager.refreshAndFindFileByUrl(FileSystem.getAppPath(psiElement.getContainingFile().getVirtualFile()) + filePath);
      if (virtualFile == null) {
        if (pluginDirPath != null) {
          // Plugin Directory element
          VirtualFile pluginDir = virtualFileManager.refreshAndFindFileByUrl("file://" + psiElement.getProject().getBasePath() + "/app/" + cakeConfig.cakeVersionAbsorption.get(CakeIdentifier.Plugin));
          if (pluginDir == null)
            return PsiReference.EMPTY_ARRAY;

          for (VirtualFile dir : pluginDir.getChildren()) {
            virtualFile = getVirtualFileByIdentifier(jumpFileName, virtualFileManager, cakeConfig, dir, CakeIdentifier.Element);
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.