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.
|
@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); |
|
} |
|
} |
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
refreshedmethod so that we can callrefresh()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