diff options
author | Darin Wright | 2005-07-26 16:58:35 +0000 |
---|---|---|
committer | Darin Wright | 2005-07-26 16:58:35 +0000 |
commit | 868a5bc4233abb6b769466f22d6ff7b71fd0c0ea (patch) | |
tree | fc12e54533b03f2b14ff417307f5375634b21cb0 | |
parent | e832a4f4ce71d4681fe1a65109c906ee8e279d91 (diff) | |
download | eclipse.platform.debug-868a5bc4233abb6b769466f22d6ff7b71fd0c0ea.tar.gz eclipse.platform.debug-868a5bc4233abb6b769466f22d6ff7b71fd0c0ea.tar.xz eclipse.platform.debug-868a5bc4233abb6b769466f22d6ff7b71fd0c0ea.zip |
Bug 98147 - Variables View does not show all children if same instance is expanded twice (re-fix - 3.1.1)
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java index 2c3126e5c..f2d2d8231 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/RemoteTreeViewer.java @@ -421,12 +421,10 @@ public class RemoteTreeViewer extends TreeViewer { } else { // add int numLeft = children.length - i; - if (numLeft > 1) { + if (numLeft >= 1) { Object[] others = new Object[numLeft]; System.arraycopy(children, i, others, 0, numLeft); - add(parent, others); - } else { - add(parent, child); + internalAdd(widget, parent, others); } break; } |