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);
}
Aggregations