Search in sources :

Example 1 with Options

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

the class TraceOptionsPanel method createOptions.

private Options createOptions() {
    Options rv = new Options();
    for (Map.Entry<OpType, JCheckBox> e : opTypesChecks.entrySet()) {
        if (e.getValue().isSelected()) {
            rv.getTypesToShow().add(e.getKey());
        }
    }
    for (Map.Entry<PerformanceCategory, JCheckBox> e : categoriesChecks.entrySet()) {
        if (e.getValue().isSelected()) {
            rv.getCategoriesToShow().add(e.getKey());
        }
    }
    rv.setShowAlsoParents(alsoParentsCheck.isSelected());
    columnsChecks.entrySet().stream().filter(e -> e.getValue().isSelected()).map(Map.Entry::getKey).forEach(column -> rv.getColumnsToShow().add(column));
    return rv;
}
Also used : Options(com.evolveum.midpoint.studio.impl.trace.Options) PerformanceCategory(com.evolveum.midpoint.schema.traces.PerformanceCategory) OpType(com.evolveum.midpoint.schema.traces.OpType) HashMap(java.util.HashMap) Map(java.util.Map)

Example 2 with Options

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

the class TraceOptionsPanel method applyPerformed.

private void applyPerformed() {
    Options options = createOptions();
    traceManager.setOptions(options);
}
Also used : Options(com.evolveum.midpoint.studio.impl.trace.Options)

Aggregations

Options (com.evolveum.midpoint.studio.impl.trace.Options)2 OpType (com.evolveum.midpoint.schema.traces.OpType)1 PerformanceCategory (com.evolveum.midpoint.schema.traces.PerformanceCategory)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1