From d46725a663f06f81e29743c361c97d0b9c689ef9 Mon Sep 17 00:00:00 2001 From: Matthias Geiger Date: Sun, 10 Mar 2019 18:23:42 +0100 Subject: [PATCH] Move library specific key pattern dialog call to library menu (#4744) --- src/main/java/org/jabref/gui/JabRefFrame.java | 4 ++-- .../jabref/gui/bibtexkeypattern/BibtexKeyPatternDialog.java | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jabref/gui/JabRefFrame.java b/src/main/java/org/jabref/gui/JabRefFrame.java index ffdeb573738..9a1a2bdb735 100644 --- a/src/main/java/org/jabref/gui/JabRefFrame.java +++ b/src/main/java/org/jabref/gui/JabRefFrame.java @@ -829,6 +829,7 @@ private MenuBar createMenu() { factory.createMenuItem(StandardActions.LIBRARY_PROPERTIES, new LibraryPropertiesAction(this, dialogService)), factory.createMenuItem(StandardActions.EDIT_PREAMBLE, new PreambleEditor(this)), factory.createMenuItem(StandardActions.EDIT_STRINGS, new BibtexStringEditorAction(this)), + factory.createMenuItem(StandardActions.MANAGE_CITE_KEY_PATTERNS, new BibtexKeyPatternAction(this)), factory.createMenuItem(StandardActions.MASS_SET_FIELDS, new MassSetFieldsAction(this)) ); @@ -916,10 +917,9 @@ private MenuBar createMenu() { new SeparatorMenuItem(), - factory.createMenuItem(StandardActions.MANAGE_CONTENT_SELECTORS, new ManageContentSelectorAction(this)), + factory.createMenuItem(StandardActions.MANAGE_CONTENT_SELECTORS, new ManageContentSelectorAction(this)) // TODO: Reenable customize entry types feature (https://github.com/JabRef/jabref/issues/4719) //factory.createMenuItem(StandardActions.CUSTOMIZE_ENTRY_TYPES, new CustomizeEntryAction(this)), - factory.createMenuItem(StandardActions.MANAGE_CITE_KEY_PATTERNS, new BibtexKeyPatternAction(this)) ); help.getItems().addAll( diff --git a/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternDialog.java b/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternDialog.java index 647c54a1fc0..3246ff21267 100644 --- a/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternDialog.java +++ b/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternDialog.java @@ -5,6 +5,7 @@ import org.jabref.Globals; import org.jabref.gui.BasePanel; import org.jabref.gui.util.BaseDialog; +import org.jabref.logic.l10n.Localization; import org.jabref.model.bibtexkeypattern.AbstractBibtexKeyPattern; import org.jabref.model.metadata.MetaData; @@ -25,6 +26,8 @@ public BibtexKeyPatternDialog(BasePanel panel) { private void init() { + this.setTitle(Localization.lang("BibTeX key patterns")); + this.getDialogPane().setContent(bibtexKeyPatternPanel.getPanel()); this.getDialogPane().getButtonTypes().addAll(ButtonType.APPLY, ButtonType.CANCEL);