コード例 #1
0
 @Nullable
 private static String getProjectPath(final Project project) {
   final String path = project.getPresentableUrl();
   if (path == null) {
     return null;
   }
   final VirtualFile vFile = LocalFileSystem.getInstance().findFileByPath(path);
   return vFile != null ? vFile.getPath() : null;
 }
コード例 #2
0
 private static List<String> convertToLocalPaths(VirtualFile[] files) {
   final List<String> paths = new ArrayList<String>();
   for (VirtualFile file : files) {
     if (file.isValid()) {
       paths.add(
           StringUtil.trimEnd(
               FileUtil.toSystemIndependentName(file.getPath()), JarFileSystem.JAR_SEPARATOR));
     }
   }
   return paths;
 }