Commit c8a1079c authored by Nico Mack's avatar Nico Mack

Fixed minor bugs

parent 78da4c87
......@@ -39,6 +39,7 @@ public class VariableBootstrapper {
return null;
String name = BootstrappingUtils.getContentAsString(variableNode, EquationSystemBundle.NAME_ATTRIBUTE, BootstrappingUtils.MANDATORY, null, context);
String displayName = BootstrappingUtils.getContentAsString(variableNode, EquationSystemBundle.DISPLAY_NAME_ATTRIBUTE, BootstrappingUtils.OPTIONAL, name, context);
String type = BootstrappingUtils.getContentAsString(variableNode, EquationSystemBundle.TYPE_NODE, BootstrappingUtils.MANDATORY, null, context);
switch (type) {
......@@ -105,6 +106,7 @@ public class VariableBootstrapper {
default:
throw new BuildException("Don't know how to build a Variable of type " + type); //$NON-NLS-1$
}
variable.setDisplayName(displayName);
return variable;
}
......
......@@ -47,6 +47,7 @@ public class VectorVariable<B> extends Variable<List<B>> implements List<B> {
public VectorVariable(String name) {
super(EquationSystemBundle.VECTOR_TYPE, name);
value = new ArrayList<B>();
}
// ---------------------------------------------------------------------------
......
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