run manager: reuse tab on ReRun action (IDEA-CR-4145)
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Thu, 13 Aug 2015 10:15:45 +0000 (13:15 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Thu, 13 Aug 2015 10:15:45 +0000 (13:15 +0300)
platform/lang-impl/src/com/intellij/execution/impl/ExecutionManagerImpl.java

index ad841c1d1c986728f29c87743cd688587ecb6d34..8d0d64f332ad4fc2d8ef0b7c9605ff5cd176f5c2 100644 (file)
@@ -394,6 +394,7 @@ public class ExecutionManagerImpl extends ExecutionManager implements Disposable
               started = true;
               processHandler.addProcessListener(new ProcessExecutionListener(project, profile, processHandler));
             }
+            environment.setContentToReuse(descriptor);
           }
         }
         catch (ProcessCanceledException e) {