Skip to content

Commit

Permalink
Merge branch 'main' of github.com:DecwLK/Gecko
Browse files Browse the repository at this point in the history
  • Loading branch information
crissNb committed Jan 15, 2024
2 parents da4996c + 6a5860c commit 88c25a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/gecko/view/GeckoView.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public GeckoView(ActionManager actionManager, GeckoViewModel viewModel) {
viewModel.getCurrentEditorProperty().addListener(this::onNewEditorViewModel);

// Menubar
mainPane.setTop(MenuBarBuilder)
mainPane.setTop(new MenuBarBuilder(this, actionManager).build());
}

private void onNewEditorViewModel(ObservableValue<? extends EditorViewModel> observable, EditorViewModel oldValue, EditorViewModel newValue) {
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/org/gecko/view/menubar/MenuBarBuilder.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
package org.gecko.view.menubar;

import javafx.scene.control.MenuBar;
import org.gecko.actions.ActionManager;
import org.gecko.view.GeckoView;

public class MenuBarBuilder {

private final MenuBar menuBar;
private final GeckoView view;
private final ActionManager actionManager;

public MenuBarBuilder(GeckoView view) {
public MenuBarBuilder(GeckoView view, ActionManager actionManager) {
this.view = view;
this.actionManager = actionManager;
menuBar = new MenuBar();
}

Expand Down

0 comments on commit 88c25a4

Please sign in to comment.