use of com.intellij.execution.ui.ExecutionConsole in project intellij-community by JetBrains.
the class PyDebugRunner method createConsoleCommunicationAndSetupActions.
public static void createConsoleCommunicationAndSetupActions(@NotNull final Project project, @NotNull final ExecutionResult result, @NotNull PyDebugProcess debugProcess, @NotNull XDebugSession session) {
ExecutionConsole console = result.getExecutionConsole();
if (console instanceof PythonDebugLanguageConsoleView) {
ProcessHandler processHandler = result.getProcessHandler();
initDebugConsoleView(project, debugProcess, (PythonDebugLanguageConsoleView) console, processHandler, session);
}
}
use of com.intellij.execution.ui.ExecutionConsole in project intellij-plugins by JetBrains.
the class KarmaConsoleView method get.
/**
* @return null in case of "Import Test Result" action
*/
@Nullable
public static KarmaConsoleView get(@NotNull ExecutionResult result, @NotNull RunProfileState state) {
ExecutionConsole console = result.getExecutionConsole();
if (console instanceof KarmaConsoleView) {
return (KarmaConsoleView) console;
}
Class consoleClass = console != null ? console.getClass() : null;
LOG.info("Cannot cast " + consoleClass + " to " + KarmaConsoleView.class.getSimpleName() + ", RunProfileState: " + state.getClass().getName());
return null;
}
use of com.intellij.execution.ui.ExecutionConsole in project intellij by bazelbuild.
the class SmRunnerUtils method attachRerunFailedTestsAction.
public static DefaultExecutionResult attachRerunFailedTestsAction(DefaultExecutionResult result) {
ExecutionConsole console = result.getExecutionConsole();
if (!(console instanceof SMTRunnerConsoleView)) {
return result;
}
SMTRunnerConsoleView smConsole = (SMTRunnerConsoleView) console;
TestConsoleProperties consoleProperties = smConsole.getProperties();
if (!(consoleProperties instanceof BlazeTestConsoleProperties)) {
return result;
}
BlazeTestConsoleProperties properties = (BlazeTestConsoleProperties) consoleProperties;
AbstractRerunFailedTestsAction action = properties.createRerunFailedTestsAction(smConsole);
if (action != null) {
action.init(properties);
action.setModelProvider(smConsole::getResultsViewer);
result.setRestartActions(action);
}
return result;
}
Aggregations