do not switch view during package navigation
[idea/community.git] / java / java-impl / src / com / intellij / psi / impl / file / PsiPackageImplementationHelperImpl.java
index 0c0abdce08d1404a2493e670578c91ffaa7a9bbb..46812a81f0051a4eeec035d6c1a5fa702394e74d 100644 (file)
@@ -16,7 +16,6 @@
 package com.intellij.psi.impl.file;
 
 import com.intellij.ide.projectView.ProjectView;
-import com.intellij.ide.projectView.impl.ProjectViewPane;
 import com.intellij.openapi.application.ApplicationManager;
 import com.intellij.openapi.command.undo.GlobalUndoableAction;
 import com.intellij.openapi.command.undo.UndoManager;
@@ -139,7 +138,7 @@ public class PsiPackageImplementationHelperImpl extends PsiPackageImplementation
         final ProjectView projectView = ProjectView.getInstance(project);
         PsiDirectory[] directories = suggestMostAppropriateDirectories(psiPackage);
         if (directories.length == 0) return;
-        projectView.getProjectViewPaneById(ProjectViewPane.ID).select(directories[0], directories[0].getVirtualFile(), requestFocus);
+        projectView.select(directories[0], directories[0].getVirtualFile(), requestFocus);
       }
     });
   }