Skip to content

Commit 3431490

Browse files
authored
Merge pull request #5977 from JabRef/journal-actions
Move journal abbreviations to library
2 parents 5674b69 + d84bce7 commit 3431490

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/main/java/org/jabref/gui/JabRefFrame.java

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,16 @@ private MenuBar createMenu() {
766766

767767
new SeparatorMenuItem(),
768768

769-
factory.createMenuItem(StandardActions.SET_FILE_LINKS, new AutoLinkFilesAction(this, prefs, stateManager, undoManager, Globals.TASK_EXECUTOR))
769+
factory.createMenuItem(StandardActions.SET_FILE_LINKS, new AutoLinkFilesAction(this, prefs, stateManager, undoManager, Globals.TASK_EXECUTOR)),
770+
771+
new SeparatorMenuItem(),
772+
773+
factory.createSubMenu(StandardActions.ABBREVIATE,
774+
factory.createMenuItem(StandardActions.ABBREVIATE_DEFAULT, new OldDatabaseCommandWrapper(Actions.ABBREVIATE_DEFAULT, this, stateManager)),
775+
factory.createMenuItem(StandardActions.ABBREVIATE_MEDLINE, new OldDatabaseCommandWrapper(Actions.ABBREVIATE_MEDLINE, this, stateManager)),
776+
factory.createMenuItem(StandardActions.ABBREVIATE_SHORTEST_UNIQUE, new OldDatabaseCommandWrapper(Actions.ABBREVIATE_SHORTEST_UNIQUE, this, stateManager))),
777+
778+
factory.createMenuItem(StandardActions.UNABBREVIATE, new OldDatabaseCommandWrapper(Actions.UNABBREVIATE, this, stateManager))
770779
);
771780

772781
lookup.getItems().addAll(
@@ -796,14 +805,7 @@ private MenuBar createMenu() {
796805
new SeparatorMenuItem(),
797806

798807
factory.createMenuItem(StandardActions.SEND_AS_EMAIL, new OldDatabaseCommandWrapper(Actions.SEND_AS_EMAIL, this, stateManager)),
799-
pushToApplicationMenuItem,
800-
801-
factory.createSubMenu(StandardActions.ABBREVIATE,
802-
factory.createMenuItem(StandardActions.ABBREVIATE_DEFAULT, new OldDatabaseCommandWrapper(Actions.ABBREVIATE_DEFAULT, this, stateManager)),
803-
factory.createMenuItem(StandardActions.ABBREVIATE_MEDLINE, new OldDatabaseCommandWrapper(Actions.ABBREVIATE_MEDLINE, this, stateManager)),
804-
factory.createMenuItem(StandardActions.ABBREVIATE_SHORTEST_UNIQUE, new OldDatabaseCommandWrapper(Actions.ABBREVIATE_SHORTEST_UNIQUE, this, stateManager))),
805-
806-
factory.createMenuItem(StandardActions.UNABBREVIATE, new OldDatabaseCommandWrapper(Actions.UNABBREVIATE, this, stateManager))
808+
pushToApplicationMenuItem
807809
);
808810

809811
SidePaneComponent webSearch = sidePaneManager.getComponent(SidePaneType.WEB_SEARCH);

0 commit comments

Comments
 (0)