@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(); }
private File getAnchorFile() { String projectUrl = myProject.getPresentableUrl(); if (projectUrl != null) return new File(projectUrl); return new File(PathManager.getHomePath()); }
public void initComponent() { String url = myProject.getPresentableUrl(); myProjectFile = url == null ? null : new File(url); }