|  | 
| 134 | 134 | import org.jabref.logic.undo.UndoRedoEvent; | 
| 135 | 135 | import org.jabref.logic.util.io.FileUtil; | 
| 136 | 136 | import org.jabref.model.database.BibDatabaseContext; | 
| 137 |  | -import org.jabref.model.database.BibDatabaseMode; | 
| 138 | 137 | import org.jabref.model.database.shared.DatabaseLocation; | 
| 139 | 138 | import org.jabref.model.entry.BibEntry; | 
| 140 | 139 | import org.jabref.model.entry.field.SpecialField; | 
| @@ -507,20 +506,14 @@ private Node createToolbar() { | 
| 507 | 506 |         final Region leftSpacer = new Region(); | 
| 508 | 507 |         final Region rightSpacer = new Region(); | 
| 509 | 508 | 
 | 
| 510 |  | -        final Button newLibrary; | 
| 511 |  | -        if (Globals.prefs.getDefaultBibDatabaseMode() == BibDatabaseMode.BIBLATEX) { | 
| 512 |  | -            newLibrary = factory.createIconButton(StandardActions.NEW_LIBRARY_BIBLATEX, new NewDatabaseAction(this, BibDatabaseMode.BIBLATEX)); | 
| 513 |  | -        } else { | 
| 514 |  | -            newLibrary = factory.createIconButton(StandardActions.NEW_LIBRARY_BIBTEX, new NewDatabaseAction(this, BibDatabaseMode.BIBTEX)); | 
| 515 |  | -        } | 
| 516 |  | - | 
| 517 | 509 |         final PushToApplicationAction pushToApplicationAction = getPushToApplicationsManager().getPushToApplicationAction(); | 
| 518 | 510 |         final Button pushToApplicationButton = factory.createIconButton(pushToApplicationAction.getActionInformation(), pushToApplicationAction); | 
| 519 | 511 |         pushToApplicationsManager.registerReconfigurable(pushToApplicationButton); | 
| 520 | 512 | 
 | 
| 521 | 513 |         ToolBar toolBar = new ToolBar( | 
| 522 | 514 | 
 | 
| 523 |  | -                new HBox(newLibrary, | 
|  | 515 | +                new HBox( | 
|  | 516 | +                        factory.createIconButton(StandardActions.NEW_LIBRARY, new NewDatabaseAction(this, prefs)), | 
| 524 | 517 |                         factory.createIconButton(StandardActions.OPEN_LIBRARY, new OpenDatabaseAction(this)), | 
| 525 | 518 |                         factory.createIconButton(StandardActions.SAVE_LIBRARY, new SaveAction(SaveAction.SaveMethod.SAVE, this, stateManager))), | 
| 526 | 519 | 
 | 
| @@ -733,10 +726,7 @@ private MenuBar createMenu() { | 
| 733 | 726 |         Menu help = new Menu(Localization.lang("Help")); | 
| 734 | 727 | 
 | 
| 735 | 728 |         file.getItems().addAll( | 
| 736 |  | -                factory.createSubMenu(StandardActions.NEW_LIBRARY, | 
| 737 |  | -                        factory.createMenuItem(StandardActions.NEW_LIBRARY_BIBTEX, new NewDatabaseAction(this, BibDatabaseMode.BIBTEX)), | 
| 738 |  | -                        factory.createMenuItem(StandardActions.NEW_LIBRARY_BIBLATEX, new NewDatabaseAction(this, BibDatabaseMode.BIBLATEX))), | 
| 739 |  | - | 
|  | 729 | +                factory.createMenuItem(StandardActions.NEW_LIBRARY, new NewDatabaseAction(this, prefs)), | 
| 740 | 730 |                 factory.createMenuItem(StandardActions.OPEN_LIBRARY, getOpenDatabaseAction()), | 
| 741 | 731 |                 fileHistory, | 
| 742 | 732 |                 factory.createMenuItem(StandardActions.SAVE_LIBRARY, new SaveAction(SaveAction.SaveMethod.SAVE, this, stateManager)), | 
|  | 
0 commit comments