Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ProcessConsole.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ProcessConsole.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ProcessConsole.java
index 085cb0f80..6659ef202 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ProcessConsole.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console/ProcessConsole.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2018 IBM Corporation and others.
+ * Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -439,11 +439,11 @@ public class ProcessConsole extends IOConsole implements IConsole, IDebugEventSe
@Override
protected void init() {
super.init();
+ DebugPlugin.getDefault().addDebugEventListener(this);
if (fProcess.isTerminated()) {
closeStreams();
resetName();
- } else {
- DebugPlugin.getDefault().addDebugEventListener(this);
+ DebugPlugin.getDefault().removeDebugEventListener(this);
}
IPreferenceStore store = DebugUIPlugin.getDefault().getPreferenceStore();
store.addPropertyChangeListener(this);
@@ -489,7 +489,7 @@ public class ProcessConsole extends IOConsole implements IConsole, IDebugEventSe
/**
* resets the name of this console to the original computed name
*/
- private void resetName() {
+ private synchronized void resetName() {
final String newName = computeName();
String name = getName();
if (!name.equals(newName)) {

Back to the top