1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[238363] Performance improvement for refresh in system view.

This commit is contained in:
David McKnight 2008-07-17 19:12:21 +00:00
parent d72b825b99
commit a43b36bb7f

View file

@ -3214,6 +3214,10 @@ public class SystemView extends SafeTreeViewer
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
Item[] children = getChildren(widget);
if (children != null) {
@ -3226,6 +3230,8 @@ public class SystemView extends SafeTreeViewer
if (data != null) doOurInternalRefresh(item, data, doStruct, false);
}
}
*/
if (firstCall) {
internalRefresh(element);
@ -6382,10 +6388,6 @@ public class SystemView extends SafeTreeViewer
internalUpdate((Widget)matches.get(i), element, properties);
}
}
// bug 238363 - this is workaround for performance problem
protected void handleLabelProviderChanged(LabelProviderChangedEvent event) {
}
}