1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[246655] [update policy] Bug in Update Scopes implementation leads to views to stop refreshing. -- fixed count

This commit is contained in:
Ted Williams 2008-09-18 20:34:47 +00:00
parent 8805635914
commit 17d3f4c1cc

View file

@ -751,16 +751,16 @@ public class AbstractCachingVMProvider extends AbstractVMProvider implements ICa
TreeViewer viewer = (TreeViewer) proxyStrategyExtension.getViewer();
Tree tree = viewer.getTree();
int count[] = { tree.getSize().y / tree.getItemHeight() };
int maximumViewportElementCount[] = { tree.getSize().y / tree.getItemHeight() };
final CountingRequestMonitor multiRm = new CountingRequestMonitor(getExecutor(), rm);
multiRm.setDoneCount(count[0] + 1);
ArrayList<IChildrenUpdate> childrenUpdateVector = new ArrayList<IChildrenUpdate>();
updateVisibleExpanded(tree, new TreeItem[] { tree.getTopItem() }, count, viewer, proxyStrategyExtension,
updateVisibleExpanded(tree, new TreeItem[] { tree.getTopItem() }, maximumViewportElementCount, viewer, proxyStrategyExtension,
multiRm, childrenUpdateVector);
update(childrenUpdateVector.toArray(new IChildrenUpdate[childrenUpdateVector.size()]));
multiRm.setDoneCount(childrenUpdateVector.size() + 1);
super.handleEvent(proxyStrategy, event, multiRm);
}