mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-32848 (assertions)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -108,6 +108,7 @@ public class DefaultJavaProgramRunner extends JavaPatchableProgramRunner {
|
||||
if (consoleComponent != null) {
|
||||
controlBreakAction.registerCustomShortcutSet(controlBreakAction.getShortcutSet(), consoleComponent);
|
||||
final ProcessHandler processHandler = executionResult.getProcessHandler();
|
||||
assert processHandler != null : executionResult;
|
||||
processHandler.addProcessListener(new ProcessAdapter() {
|
||||
public void processTerminated(final ProcessEvent event) {
|
||||
processHandler.removeProcessListener(this);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -36,11 +36,11 @@ public class DefaultExecutionResult implements ExecutionResult {
|
||||
private AnAction[] myRestartActions;
|
||||
private final List<AnAction> myStopActions = new ArrayList<AnAction>();
|
||||
|
||||
public DefaultExecutionResult(final ExecutionConsole console, final ProcessHandler processHandler) {
|
||||
public DefaultExecutionResult(final ExecutionConsole console, @NotNull final ProcessHandler processHandler) {
|
||||
this(console, processHandler, AnAction.EMPTY_ARRAY);
|
||||
}
|
||||
|
||||
public DefaultExecutionResult(final ExecutionConsole console, final ProcessHandler processHandler, final AnAction... actions) {
|
||||
public DefaultExecutionResult(final ExecutionConsole console, @NotNull final ProcessHandler processHandler, final AnAction... actions) {
|
||||
myConsole = console;
|
||||
myProcessHandler = processHandler;
|
||||
myActions = actions;
|
||||
|
||||
Reference in New Issue
Block a user