autoscroll from source shouldn't request focus
authorKirill Kalishev <Kirill.Kalishev@jetbrains.com>
Tue, 8 Sep 2009 16:13:18 +0000 (20:13 +0400)
committerKirill Kalishev <Kirill.Kalishev@jetbrains.com>
Tue, 8 Sep 2009 16:13:18 +0000 (20:13 +0400)
platform/lang-impl/src/com/intellij/ide/impl/ProjectViewSelectInTarget.java

index 8e826fe600b1366b77869eddd42de8b82656a171..49fd6e75f4885a9fa1a0b0e6b4264a905be8a37b 100644 (file)
@@ -60,7 +60,11 @@ public abstract class ProjectViewSelectInTarget extends SelectInTargetPsiWrapper
       }
     };
 
-    projectViewToolWindow.activate(runnable, false);
+    if (requestFocus) {
+      projectViewToolWindow.activate(runnable, false);
+    } else {
+      projectViewToolWindow.show(runnable);
+    }
 
     return result;
   }