user1328572
user1328572

Reputation: 599

refresh on a jface tree item has paint issues

refresh on a jface tree item has paint issues. What I am trying is to refresh when a new item is added.

treeviewer.refresh(item) that item has many child items (many)enter image description here

Ultimately it refreshes, however somewhere after 7-10 seconds later. How to approach to debug this paint issue ?

Upvotes: 0

Views: 385

Answers (1)

Doug
Doug

Reputation: 1

If you use treeViewer.refresh(item, false); then you should have some better performance. Only the labels of the new items would be looked up and updated rather than all of the children's labels.

http://help.eclipse.org/mars/topic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/viewers/StructuredViewer.html#refresh-java.lang.Object-boolean-

Upvotes: 0

Related Questions