mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 20:45:22 +02:00
[238363] Performance improvement for refresh in system view.
This commit is contained in:
parent
d72b825b99
commit
a43b36bb7f
1 changed files with 7 additions and 5 deletions
|
@ -3214,6 +3214,10 @@ public class SystemView extends SafeTreeViewer
|
||||||
updateItem(widget, data);
|
updateItem(widget, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* may cause performance issue in bug 238363
|
||||||
|
* calling refresh on each child item means that we'll be doing update on it
|
||||||
|
* which ends up making it a pending decoration change since it's an update on an
|
||||||
|
* item that already has text
|
||||||
// recurse
|
// recurse
|
||||||
Item[] children = getChildren(widget);
|
Item[] children = getChildren(widget);
|
||||||
if (children != null) {
|
if (children != null) {
|
||||||
|
@ -3226,6 +3230,8 @@ public class SystemView extends SafeTreeViewer
|
||||||
if (data != null) doOurInternalRefresh(item, data, doStruct, false);
|
if (data != null) doOurInternalRefresh(item, data, doStruct, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (firstCall) {
|
if (firstCall) {
|
||||||
|
|
||||||
internalRefresh(element);
|
internalRefresh(element);
|
||||||
|
@ -6383,9 +6389,5 @@ public class SystemView extends SafeTreeViewer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// bug 238363 - this is workaround for performance problem
|
|
||||||
protected void handleLabelProviderChanged(LabelProviderChangedEvent event) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue