com.intellij.openapi.project.impl.ProjectImpl



API Populatity

1 Client projects

Project: com.intellij

Project JetBrains/intellij-community in file ...source.com.intellij.ide.RecentProjectsManager.java (2007-01-16)
@@ -10,6 +10,7 @@ import com.intellij.openapi.components.ApplicationComponent;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.project.ProjectManager;
 import com.intellij.openapi.project.ProjectManagerListener;
+import com.intellij.openapi.project.impl.ProjectImpl;
 import com.intellij.openapi.util.InvalidDataException;
 import com.intellij.openapi.util.JDOMExternalizable;
 import com.intellij.openapi.util.SystemInfo;
@@ -208,7 +209,7 @@ public class RecentProjectsManager implements ApplicationComponent, JDOMExternal
   }
 
   private static String getProjectPath(Project project) {
-    return project.getProjectFilePath();
+    return ((ProjectImpl)project).getStateStore().getProjectFilePath();
   }
 
   private class ReopenProjectAction extends AnAction {
Project JetBrains/intellij-community in file ...rc.com.intellij.ide.RecentProjectsManagerBase.java (2013-02-28)
@@ -24,6 +24,7 @@ import com.intellij.openapi.components.PersistentStateComponent;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.project.ProjectManager;
 import com.intellij.openapi.project.ProjectManagerAdapter;
+import com.intellij.openapi.project.impl.ProjectImpl;
 import com.intellij.openapi.ui.Messages;
 import com.intellij.openapi.util.Ref;
 import com.intellij.openapi.util.SystemInfo;
@@ -265,7 +266,7 @@ public abstract class RecentProjectsManagerBase implements PersistentStateCompon
   private static String getProjectName(String path) {
     final File file = new File(path);
     if (file.isDirectory()) {
-      final File nameFile = new File(new File(path, Project.DIRECTORY_STORE_FOLDER), ".name");
+      final File nameFile = new File(new File(path, Project.DIRECTORY_STORE_FOLDER), ProjectImpl.NAME_FILE);
       if (nameFile.exists()) {
         try {
           final BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(nameFile), "UTF-8"));
Project JetBrains/intellij-community in file ...lij.openapi.roots.impl.ProjectRootManagerImpl.java (2007-02-16)
@@ -15,15 +15,14 @@ import com.intellij.openapi.fileTypes.FileTypeManager;
 import com.intellij.openapi.module.ModifiableModuleModel;
 import com.intellij.openapi.module.Module;
 import com.intellij.openapi.module.ModuleManager;
-import com.intellij.openapi.module.impl.ModuleImpl;
 import com.intellij.openapi.module.impl.scopes.JdkScope;
 import com.intellij.openapi.module.impl.scopes.LibraryRuntimeClasspathScope;
+import com.intellij.openapi.module.impl.ModuleImpl;
 import com.intellij.openapi.progress.ProgressManager;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.project.ProjectBundle;
 import com.intellij.openapi.project.ex.ProjectEx;
 import com.intellij.openapi.project.ex.ProjectManagerEx;
-import com.intellij.openapi.project.impl.ProjectImpl;
 import com.intellij.openapi.projectRoots.ProjectJdk;
 import com.intellij.openapi.projectRoots.ProjectJdkTable;
 import com.intellij.openapi.projectRoots.ProjectRootType;
@@ -610,7 +609,7 @@ public class ProjectRootManagerImpl extends ProjectRootManagerEx implements Proj
       rootPaths.add(extractLocalPath(url));
     }
 
-    final String projectFile = ((ProjectImpl)myProject).getStateStore().getProjectFilePath();
+    final String projectFile = ((ProjectEx)myProject).getStateStore().getProjectFilePath();
     if (projectFile != null) {
       rootPaths.add(projectFile);
       // No need to add workspace file separately since they're definetely on same directory with ipr.