stupid fix for ClassCastException
authorKirill Kalishev <kirill.kalishev@jetbrains.com>
Thu, 5 Nov 2009 16:46:57 +0000 (19:46 +0300)
committerKirill Kalishev <kirill.kalishev@jetbrains.com>
Thu, 5 Nov 2009 16:46:57 +0000 (19:46 +0300)
platform/lang-impl/src/com/intellij/ide/impl/ProjectViewSelectInTarget.java

index 01a97e47e887d26c4450fbc107c514addca6192c..555f88ff11e6ddea9d43220575c42da36a6ea705 100644 (file)
@@ -27,6 +27,7 @@ import com.intellij.openapi.extensions.Extensions;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.util.ActionCallback;
 import com.intellij.openapi.vfs.VirtualFile;
+import com.intellij.openapi.wm.ToolWindow;
 import com.intellij.openapi.wm.ToolWindowId;
 import com.intellij.openapi.wm.ToolWindowManager;
 import com.intellij.openapi.wm.ex.ToolWindowEx;
@@ -61,7 +62,7 @@ public abstract class ProjectViewSelectInTarget extends SelectInTargetPsiWrapper
 
     final ProjectView projectView = ProjectView.getInstance(project);
     ToolWindowManager windowManager=ToolWindowManager.getInstance(project);
-    final ToolWindowEx projectViewToolWindow = (ToolWindowEx) windowManager.getToolWindow(ToolWindowId.PROJECT_VIEW);
+    final ToolWindow projectViewToolWindow = windowManager.getToolWindow(ToolWindowId.PROJECT_VIEW);
     final Runnable runnable = new Runnable() {
       public void run() {
         if (requestFocus) {