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:
parent
8805635914
commit
17d3f4c1cc
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue