Commit beb28ec3 authored by Nico Mack's avatar Nico Mack

Re-activated old version of getVariables method

parent 43e6c743
......@@ -85,15 +85,18 @@ public class DisplayMarker extends InfoMarker implements InputChangeListener, Va
// ---------------------------------------------------------------------------
public Collection<Variable<?>> getVariables() {
// Collection<Variable<?>> variables = new ArrayList<>();
// List<ValueCorona> displays = this.getCoronas(ValueCorona.class);
// for (ValueCorona display : displays) {
// Variable<?> variable = display.getVariable();
// if (variable != null) {
// variables.add(variable);
// }
// }
return variables.values();
Collection<Variable<?>> variables = new ArrayList<>();
this.dispatcher.clear();
List<ValueCorona> displays = this.getCoronas(ValueCorona.class);
for (ValueCorona display : displays) {
Variable<?> variable = display.getVariable();
if (variable != null) {
variables.add(variable);
this.dispatcher.put(variable.getName(), display);
}
}
return variables;
}
// ---------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment