Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2013-01-30 17:11:48 +0000
committerPawel Piech2013-01-30 17:11:48 +0000
commit3fafb34ed7db2b460fd3eeaf7da35b2590afb0d3 (patch)
treed1f8a7b747f4d6f09aca51ac016d2274654400a7
parentec7d56b9feeac2767e92db7faa0fad7c690c075d (diff)
downloadeclipse.platform.debug-3fafb34ed7db2b460fd3eeaf7da35b2590afb0d3.tar.gz
eclipse.platform.debug-3fafb34ed7db2b460fd3eeaf7da35b2590afb0d3.tar.xz
eclipse.platform.debug-3fafb34ed7db2b460fd3eeaf7da35b2590afb0d3.zip
Bug 399287 - Widget is disposed exception if field editor left open when resuming from a breakpointv20130130-171148I20130205-0800I20130130-2000
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java
index 9ddd2bada..239ed8bf3 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/InternalTreeModelViewer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2011 IBM Corporation and others.
+ * Copyright (c) 2006, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -234,9 +234,9 @@ public class InternalTreeModelViewer extends TreeViewer
}
/**
- * Disposes client's column editor and cell editors
+ * Clears client's column editor and cell editors
*/
- protected void dispose() {
+ protected void clear() {
fModifier = null;
disposeCellEditors();
setCellEditors(null);
@@ -404,7 +404,7 @@ public class InternalTreeModelViewer extends TreeViewer
if (fColumnPresentation != null) {
fColumnPresentation.dispose();
}
- fCellModifier.dispose();
+ fCellModifier.clear();
super.handleDispose(event);
}
@@ -499,6 +499,7 @@ public class InternalTreeModelViewer extends TreeViewer
* @see org.eclipse.jface.viewers.AbstractTreeViewer#inputChanged(java.lang.Object, java.lang.Object)
*/
protected void inputChanged(Object input, Object oldInput) {
+ fCellModifier.clear();
// Clear items map now that ITreeModelContentProvider.inputChanged() was already called.
// Bug 326917
super.unmapAllElements();

Back to the top