diff options
author | Darin Wright | 2007-04-24 20:50:10 +0000 |
---|---|---|
committer | Darin Wright | 2007-04-24 20:50:10 +0000 |
commit | d8cf418e9144263071833bad12dff76859e0a4ba (patch) | |
tree | 23128e6275769098054fbe533417b6613b5dc7ae /org.eclipse.debug.ui | |
parent | e439090c7ce760deac48bec4ae47ade0ed8d7f1a (diff) | |
download | eclipse.platform.debug-d8cf418e9144263071833bad12dff76859e0a4ba.tar.gz eclipse.platform.debug-d8cf418e9144263071833bad12dff76859e0a4ba.tar.xz eclipse.platform.debug-d8cf418e9144263071833bad12dff76859e0a4ba.zip |
Bug 183504 Frames collapse when holding down step over key
Diffstat (limited to 'org.eclipse.debug.ui')
2 files changed, 16 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/ChildrenCountUpdate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/ChildrenCountUpdate.java index d87cce838..c41be3965 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/ChildrenCountUpdate.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/ChildrenCountUpdate.java @@ -91,7 +91,14 @@ class ChildrenCountUpdate extends ViewerUpdateMonitor implements IChildrenCountU if (fBatchedRequests == null) { getElementContentProvider().update(new IChildrenCountUpdate[]{this}); } else { - getElementContentProvider().update((IChildrenCountUpdate[]) fBatchedRequests.toArray(new IChildrenCountUpdate[fBatchedRequests.size()])); + IChildrenCountUpdate[] updates = (IChildrenCountUpdate[]) fBatchedRequests.toArray(new IChildrenCountUpdate[fBatchedRequests.size()]); + // notify that the other updates have also started to ensure correct sequence + // of model updates - **** start at index 1 since the first (0) update has + // already notified the content provider that it has started. + for (int i = 1; i < updates.length; i++) { + getContentProvider().updateStarted((ViewerUpdateMonitor) updates[i]); + } + getElementContentProvider().update(updates); } } diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/HasChildrenUpdate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/HasChildrenUpdate.java index 15f22a094..eb7174c78 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/HasChildrenUpdate.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/HasChildrenUpdate.java @@ -91,7 +91,14 @@ class HasChildrenUpdate extends ViewerUpdateMonitor implements IHasChildrenUpdat if (fBatchedRequests == null) { getElementContentProvider().update(new IHasChildrenUpdate[]{this}); } else { - getElementContentProvider().update((IHasChildrenUpdate[]) fBatchedRequests.toArray(new IHasChildrenUpdate[fBatchedRequests.size()])); + IHasChildrenUpdate[] updates = (IHasChildrenUpdate[]) fBatchedRequests.toArray(new IHasChildrenUpdate[fBatchedRequests.size()]); + // notify that the other updates have also started to ensure correct sequence + // of model updates - **** start at index 1 since the first (0) update has + // already notified the content provider that it has started. + for (int i = 1; i < updates.length; i++) { + getContentProvider().updateStarted((ViewerUpdateMonitor) updates[i]); + } + getElementContentProvider().update(updates); } } |