Small cleanup

This commit is contained in:
2021-02-23 17:10:33 +01:00
parent b658a1870a
commit 3edaf61c46
10 changed files with 38 additions and 29 deletions

View File

@@ -30,6 +30,21 @@ public class MenubarController implements Initializable, Controller {
@FXML
private ToggleGroup languageToggleGroup;
@Override
public void initialize(URL url, ResourceBundle resourceBundle) {
// TODO: implement
}
@Override
public void setEventBus(EventBus eventBus) {
this.eventBus = eventBus;
this.eventBus.register(this);
}
/* ------------------------------------------------------------------------ */
/* FILE */
/* ------------------------------------------------------------------------ */
@FXML
public String handleOpenFile() {
FileChooser fc = new FileChooser();
@@ -72,21 +87,6 @@ public class MenubarController implements Initializable, Controller {
// fc.showOpenDialog(stage);
// }
@Override
public void initialize(URL url, ResourceBundle resourceBundle) {
// TODO: implement
}
@Override
public void setEventBus(EventBus eventBus) {
this.eventBus = eventBus;
this.eventBus.register(this);
}
/* ------------------------------------------------------------------------ */
/* FILE */
/* ------------------------------------------------------------------------ */
/**
* Handles the event where the language was change from the menu.
* @param event
@@ -116,6 +116,15 @@ public class MenubarController implements Initializable, Controller {
this.eventBus.post(new ToggleCommentEvent());
}
/* ------------------------------------------------------------------------ */
/* ABOUT */
/* ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------ */
/* SUBSCRIPTIONS */
/* ------------------------------------------------------------------------ */
/**
* Updates menubuttons whenever the language is changed
* @param event
@@ -132,8 +141,4 @@ public class MenubarController implements Initializable, Controller {
.setSelected(true);
}
/* ------------------------------------------------------------------------ */
/* ABOUT */
/* ------------------------------------------------------------------------ */
}