Search in sources :

Example 1 with ClockworkTraceType

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);
    }
}
Also used : OperationResultType(com.evolveum.midpoint.xml.ns._public.common.common_3.OperationResultType) ArrayList(java.util.ArrayList) PrismNode(com.evolveum.midpoint.studio.ui.trace.lens.PrismNode) ClockworkTraceType(com.evolveum.midpoint.xml.ns._public.common.common_3.ClockworkTraceType) LensContextType(com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType)

Aggregations

PrismNode (com.evolveum.midpoint.studio.ui.trace.lens.PrismNode)1 ClockworkTraceType (com.evolveum.midpoint.xml.ns._public.common.common_3.ClockworkTraceType)1 LensContextType (com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType)1 OperationResultType (com.evolveum.midpoint.xml.ns._public.common.common_3.OperationResultType)1 ArrayList (java.util.ArrayList)1