diff options
author | Darin Wright | 2006-05-09 19:21:23 +0000 |
---|---|---|
committer | Darin Wright | 2006-05-09 19:21:23 +0000 |
commit | 6d840573be79981c562b5d77173313f224be548a (patch) | |
tree | b71dcefe7a42b898779f04b49acaa37794d3c973 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousModel.java | |
parent | c2c132bd5465a5b660ac218ddb3c25b032a94477 (diff) | |
download | eclipse.platform.debug-6d840573be79981c562b5d77173313f224be548a.tar.gz eclipse.platform.debug-6d840573be79981c562b5d77173313f224be548a.tar.xz eclipse.platform.debug-6d840573be79981c562b5d77173313f224be548a.zip |
Bug 139593 - Expression View does not clean up children when an expression becomes invalid
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousModel.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousModel.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousModel.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousModel.java index de7aa7fcc..a59301271 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousModel.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousModel.java @@ -82,7 +82,7 @@ public abstract class AsynchronousModel { } } - private IAsynchronousContentAdapter fEmptyContentAdapter = new EmptyContentAdapter(); + protected IAsynchronousContentAdapter fEmptyContentAdapter = new EmptyContentAdapter(); /** * List of requests currently being performed. @@ -455,9 +455,6 @@ public abstract class AsynchronousModel { IAdaptable adaptable = (IAdaptable) element; adapter = (IAsynchronousContentAdapter) adaptable.getAdapter(IAsynchronousContentAdapter.class); } - if (adapter == null) { - adapter = fEmptyContentAdapter; - } return adapter; } @@ -470,6 +467,9 @@ public abstract class AsynchronousModel { public void updateChildren(ModelNode parent) { Object element = parent.getElement(); IAsynchronousContentAdapter adapter = getContentAdapter(element); + if (adapter == null) { + adapter = fEmptyContentAdapter; + } if (adapter != null) { IChildrenRequestMonitor update = new ChildrenRequestMonitor(parent, this); requestScheduled(update); |