Search in sources :

Example 1 with Selectable

use of com.evolveum.midpoint.studio.util.Selectable in project midpoint-studio by Evolveum.

the class EnvironmentsPanel method initData.

private void initData() {
    List<Selectable<Environment>> selectables = new ArrayList<>();
    Environment selected = environmentSettings.getSelected();
    environmentSettings.getEnvironments().forEach(e -> {
        Selectable s = new Selectable(new Environment(e));
        if (selected != null) {
            s.setSelected(Objects.equals(e.getId(), selected.getId()));
        }
        selectables.add(s);
    });
    setData(selectables);
}
Also used : Selectable(com.evolveum.midpoint.studio.util.Selectable) ArrayList(java.util.ArrayList) Environment(com.evolveum.midpoint.studio.impl.Environment)

Aggregations

Environment (com.evolveum.midpoint.studio.impl.Environment)1 Selectable (com.evolveum.midpoint.studio.util.Selectable)1 ArrayList (java.util.ArrayList)1