final ConsoleView consoleView = createConsoleView(executor);
ErlangConsoleUtil.attachFilters(myConfiguration.getProject(), consoleView);
consoleView.attachToProcess(processHandler);
DefaultExecutionResult executionResult = new DefaultExecutionResult(consoleView, processHandler);
ErlangUnitRerunFailedTestsAction rerunAction = new ErlangUnitRerunFailedTestsAction(consoleView);
rerunAction.init(((BaseTestsOutputConsoleView) consoleView).getProperties());
rerunAction.setModelProvider(new Getter<TestFrameworkRunningModel>() {
@Override
public TestFrameworkRunningModel get() {
return ((SMTRunnerConsoleView) consoleView).getResultsViewer();
}
});
executionResult.setRestartActions(rerunAction, new ToggleAutoTestAction(getEnvironment()));
return executionResult;
}