use of com.evolveum.midpoint.studio.ui.trace.ViewingState in project midpoint-studio by Evolveum.
the class OpOverviewTreePanel method updateModel.
@Override
void updateModel(OpNode node) {
super.updateModel(node);
ViewingState initialState = new ViewingState();
DefaultMutableTreeTableNode root = new DefaultMutableTreeTableNode();
if (node != null) {
root.add(new TextNode("Operation", node.getLabel()));
if (node.getType() != null) {
try {
// noinspection unchecked
((AbstractOpNodePresentation<OpNode>) node.getPresentation()).getOverviewProvider().provideOverview(node, root, initialState);
} catch (SchemaException e) {
TextNode.create("Couldn't provide overview", e.getMessage(), root);
}
}
}
updateTreeModel(root);
setViewingState(initialState);
}
Aggregations