Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2007-04-24 20:50:10 +0000
committerDarin Wright2007-04-24 20:50:10 +0000
commitd8cf418e9144263071833bad12dff76859e0a4ba (patch)
tree23128e6275769098054fbe533417b6613b5dc7ae /org.eclipse.debug.ui
parente439090c7ce760deac48bec4ae47ade0ed8d7f1a (diff)
downloadeclipse.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')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/ChildrenCountUpdate.java9
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/model/HasChildrenUpdate.java9
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);
}
}

Back to the top