Commit 543c5077 authored by legoc's avatar legoc
Browse files

Added empty value for controller and reference

parent d3ab1d5f
......@@ -58,7 +58,7 @@ public class AxisBuilder {
} catch (NonInvertibleTransformException e) {
e.printStackTrace();
}
this.axis.getVisualGroup().setVisible(true);
this.axis.setVisible(true);
parentGroup.getChildren().add(this.axis.getVisualGroup());
}
this.axis.getVisualGroup().setOnMousePressed(me -> {
......
......@@ -278,7 +278,8 @@ public class EditorMenuBar extends MenuBar {
// }
Label controllerLabel = new Label("Controller : ");
ObservableList<String> controllers = FXCollections.observableArrayList(NomadLinker.getInstance().getControllersNames());
ObservableList<String> controllers = FXCollections.observableArrayList("");
controllers.addAll(NomadLinker.getInstance().getControllersNames());
ComboBox<String> controllerBox = new ComboBox<>(controllers);
if (selectedAxis.getController() != null) {
controllerBox.getSelectionModel().select(selectedAxis.getController().getName());
......@@ -332,7 +333,8 @@ public class EditorMenuBar extends MenuBar {
// Reference
Label referenceLabel = new Label("Reference : ");
ObservableList<String> references = FXCollections.observableArrayList(ReferenceAxisList.getInstance().getNames());
ObservableList<String> references = FXCollections.observableArrayList("");
references.addAll(ReferenceAxisList.getInstance().getNames());
ComboBox<String> referenceBox = new ComboBox<>(references);
if (selectedAxis.getReferenceAxis() != null) {
......@@ -457,7 +459,7 @@ public class EditorMenuBar extends MenuBar {
// Reference for first zero value
Label zeroValueReference1Label = new Label("Zero Value Reference 1 : ");
ComboBox<String> zeroValueReference1Box = new ComboBox<>(references);
// Select the reference axis.
if (selectedAxis.getZeroValueReferenceAxis1() != null) {
zeroValueReference1Box.getSelectionModel().select(selectedAxis.getZeroValueReferenceAxis1().getName());
......
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