use of com.evolveum.midpoint.xml.ns._public.common.common_3.ClockworkTraceType in project midpoint-studio by Evolveum.
the class TraceLensContextPanel method nodeChange.
private void nodeChange(OpNode node) {
List<PrismNode> roots = new ArrayList<>();
if (node == null) {
label.setText(LABEL_DEFAULT_TEXT);
updateTableModel(roots);
return;
}
LensContextType inputContext;
LensContextType outputContext;
ClockworkTraceType trace = node.getTrace(ClockworkTraceType.class);
if (trace != null) {
inputContext = trace.getInputLensContext();
outputContext = trace.getOutputLensContext();
} else {
inputContext = null;
outputContext = null;
}
if (node != null && (inputContext != null || outputContext != null)) {
OperationResultType result = node.getResult();
label.setText(result.getOperation() + " (" + result.getInvocationId() + "): " + node.getTraceNames());
roots.add(parseContext("input", inputContext));
roots.add(parseContext("output", outputContext));
LOG.debug("Structure changed, setting new roots");
updateTableModel(roots);
}
}
Aggregations