예제 #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;
 }
  @Nullable
  @Override
  public String getCompilerOutputUrl() {
    if (myOutputDirPointer == null) {
      VirtualFile baseDir = myProject.getBaseDir();
      assert baseDir != null;
      VirtualFile outDir = baseDir.findFileByRelativePath(DEFAULT_OUTPUT_URL);

      return outDir == null
          ? myProject.getPresentableUrl() + "/" + DEFAULT_OUTPUT_URL
          : outDir.getUrl();
    }
    return myOutputDirPointer.getUrl();
  }
 @Override
 protected String getProjectPath(@NotNull Project project) {
   return project.getPresentableUrl();
 }
예제 #4
0
 private File getAnchorFile() {
   String projectUrl = myProject.getPresentableUrl();
   if (projectUrl != null) return new File(projectUrl);
   return new File(PathManager.getHomePath());
 }
예제 #5
0
 public void initComponent() {
   String url = myProject.getPresentableUrl();
   myProjectFile = url == null ? null : new File(url);
 }