Skip to content

Commit d46725a

Browse files
matthiasgeigerSiedlerchr
authored andcommitted
Move library specific key pattern dialog call to library menu (#4744)
1 parent fac6e62 commit d46725a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,7 @@ private MenuBar createMenu() {
829829
factory.createMenuItem(StandardActions.LIBRARY_PROPERTIES, new LibraryPropertiesAction(this, dialogService)),
830830
factory.createMenuItem(StandardActions.EDIT_PREAMBLE, new PreambleEditor(this)),
831831
factory.createMenuItem(StandardActions.EDIT_STRINGS, new BibtexStringEditorAction(this)),
832+
factory.createMenuItem(StandardActions.MANAGE_CITE_KEY_PATTERNS, new BibtexKeyPatternAction(this)),
832833
factory.createMenuItem(StandardActions.MASS_SET_FIELDS, new MassSetFieldsAction(this))
833834
);
834835

@@ -916,10 +917,9 @@ private MenuBar createMenu() {
916917

917918
new SeparatorMenuItem(),
918919

919-
factory.createMenuItem(StandardActions.MANAGE_CONTENT_SELECTORS, new ManageContentSelectorAction(this)),
920+
factory.createMenuItem(StandardActions.MANAGE_CONTENT_SELECTORS, new ManageContentSelectorAction(this))
920921
// TODO: Reenable customize entry types feature (https://github.com/JabRef/jabref/issues/4719)
921922
//factory.createMenuItem(StandardActions.CUSTOMIZE_ENTRY_TYPES, new CustomizeEntryAction(this)),
922-
factory.createMenuItem(StandardActions.MANAGE_CITE_KEY_PATTERNS, new BibtexKeyPatternAction(this))
923923
);
924924

925925
help.getItems().addAll(

src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternDialog.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.jabref.Globals;
66
import org.jabref.gui.BasePanel;
77
import org.jabref.gui.util.BaseDialog;
8+
import org.jabref.logic.l10n.Localization;
89
import org.jabref.model.bibtexkeypattern.AbstractBibtexKeyPattern;
910
import org.jabref.model.metadata.MetaData;
1011

@@ -25,6 +26,8 @@ public BibtexKeyPatternDialog(BasePanel panel) {
2526

2627
private void init() {
2728

29+
this.setTitle(Localization.lang("BibTeX key patterns"));
30+
2831
this.getDialogPane().setContent(bibtexKeyPatternPanel.getPanel());
2932
this.getDialogPane().getButtonTypes().addAll(ButtonType.APPLY, ButtonType.CANCEL);
3033

0 commit comments

Comments
 (0)