Skip to content

Refresh of TreeViewer is slow #1433

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions