Skip to content

Refresh of TreeViewer is slow #1433

@ptziegler

Description

@ptziegler

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);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions