Search in sources :

Example 1 with FormattingContext

use of com.evolveum.midpoint.studio.impl.trace.FormattingContext in project midpoint-studio by Evolveum.

the class AbstractOpTreePanel method applySelection.

void applySelection(Node<?> obj) {
    if (obj == null) {
        variablesValue.setText(null);
    } else {
        Format format = variablesDisplayAs.getFormat();
        String text = format.format(obj.getObject(), new FormattingContext(currentOpNode));
        variablesValue.setText(text);
        variablesValue.setCaretPosition(0);
    }
}
Also used : FormattingContext(com.evolveum.midpoint.studio.impl.trace.FormattingContext) Format(com.evolveum.midpoint.studio.impl.trace.Format)

Aggregations

Format (com.evolveum.midpoint.studio.impl.trace.Format)1 FormattingContext (com.evolveum.midpoint.studio.impl.trace.FormattingContext)1