Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2001-06-14 12:47:45 +0000
committerDarin Wright2001-06-14 12:47:45 +0000
commit80945bff1813164301fe6c764f8117156bd8ad2d (patch)
treea4c4cac35df5f547a53d180a478320520831170e
parent934a9a9edffba3111462ff3ac75c8c2e90730bda (diff)
downloadeclipse.platform.debug-80945bff1813164301fe6c764f8117156bd8ad2d.tar.gz
eclipse.platform.debug-80945bff1813164301fe6c764f8117156bd8ad2d.tar.xz
eclipse.platform.debug-80945bff1813164301fe6c764f8117156bd8ad2d.zip
1GFA4XLv0_124
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ConsoleView.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ConsoleView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ConsoleView.java
index 60d4761c3..48b3bd3b4 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ConsoleView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ConsoleView.java
@@ -17,7 +17,9 @@ public class ConsoleView extends ViewPart implements IDocumentListener {
protected ClearOutputAction fClearOutputAction= null;
protected Map fGlobalActions= new HashMap(10);
- protected List fSelectionActions = new ArrayList(3);
+ protected List fSelectionActions = new ArrayList(3);
+
+ protected IDocument fCurrentDocument= null;
/**
* @see ViewPart#createChild(IWorkbenchPartContainer)
*/
@@ -177,6 +179,7 @@ public class ConsoleView extends ViewPart implements IDocumentListener {
if (old != null) {
old.removeDocumentListener(ConsoleView.this);
}
+ fCurrentDocument = nw;
if (nw != null) {
nw.addDocumentListener(ConsoleView.this);
}
@@ -204,6 +207,9 @@ public class ConsoleView extends ViewPart implements IDocumentListener {
fConsoleViewer.dispose();
fConsoleViewer= null;
}
+ if (fCurrentDocument != null) {
+ fCurrentDocument.removeDocumentListener(this);
+ }
super.dispose();
}
/**

Back to the top