private void setFileDependingButtonBindings() { // MenuItems pyrpurItem.disableProperty().bind(model.fileLoadedProperty().not()); augcItem.disableProperty().bind(model.fileLoadedProperty().not()); meshItem.disableProperty().bind(model.fileLoadedProperty().not()); stickItem.disableProperty().bind(model.fileLoadedProperty().not()); ballItem.disableProperty().bind(model.fileLoadedProperty().not()); // Buttons on the side colorPyrpur.disableProperty().bind(model.fileLoadedProperty().not()); colorAugc.disableProperty().bind(model.fileLoadedProperty().not()); structureMesh.disableProperty().bind(model.fileLoadedProperty().not()); structureStick.disableProperty().bind(model.fileLoadedProperty().not()); structureBall.disableProperty().bind(model.fileLoadedProperty().not()); playRotate.disableProperty().bind(model.fileLoadedProperty().not()); rotateLeft.disableProperty().bind(model.fileLoadedProperty().not()); rotateRight.disableProperty().bind(model.fileLoadedProperty().not()); zoomIn.disableProperty().bind(model.fileLoadedProperty().not()); zoomOut.disableProperty().bind(model.fileLoadedProperty().not()); centerObject.disableProperty().bind(model.fileLoadedProperty().not()); }