-
Notifications
You must be signed in to change notification settings - Fork 31
Refresh of TreeViewer is slow #1433
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The refresh event for the components tree viewer always performs a refresh of the entire component structure, even if only a sub-component was modified. We should pass the affected model as additional parameter to the refreshed method so that we can call refresh() on that, rather than the root.
windowbuilder/org.eclipse.wb.core/src/org/eclipse/wb/core/gefTree/part/ObjectEditPart.java
Lines 90 to 104 in 56b01bd
| @Override | |
| public void refreshed() throws Exception { | |
| // do in setRedraw(false) to avoid flashing after component moving | |
| tree.setRedraw(false); | |
| try { | |
| refresh(); | |
| { | |
| setSelectionIfAllEditParts(m_delayedSelectionObjects); | |
| m_delayedSelectionObjects = null; | |
| } | |
| viewer.setSelectionToTreeWidget(); | |
| } finally { | |
| tree.setRedraw(true); | |
| } | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request