WrapLayout
with a left
- * alignment and a default 5-unit horizontal and vertical gap.
- */
- public WrapLayout() {
- super();
- }
-
- /**
- * Constructs a new FlowLayout
with the specified
- * alignment and a default 5-unit horizontal and vertical gap.
- * The value of the alignment argument must be one of
- * WrapLayout
, WrapLayout
,
- * or WrapLayout
.
- * @param align the alignment value
- */
- public WrapLayout(int align) {
- super(align);
- }
-
- /**
- * Creates a new flow layout manager with the indicated alignment
- * and the indicated horizontal and vertical gaps.
- *
- * The value of the alignment argument must be one of
- * "
- + Localization.lang("Do you want JabRef to do the following operations?") + "")).xy(1, row);
-
- if (offerChangeSettings) {
- formBuilder.appendRows("2dlu, p");
- row += 2;
- formBuilder.add(changeSettings).xy(1, row);
- }
- if (offerChangeDatabase) {
- formBuilder.appendRows("2dlu, p");
- row += 2;
- formBuilder.add(changeDatabase).xy(1, row);
- }
- if (offerSetFileDir) {
- if (Globals.prefs.hasKey(FieldName.PDF + FilePreferences.DIR_SUFFIX)) {
- fileDir.setText(Globals.prefs.get(FieldName.PDF + FilePreferences.DIR_SUFFIX));
- } else {
- fileDir.setText(Globals.prefs.get(FieldName.PS + FilePreferences.DIR_SUFFIX));
- }
- JPanel builderPanel = new JPanel();
- builderPanel.add(setFileDir);
- builderPanel.add(fileDir);
- JButton browse = new JButton(Localization.lang("Browse"));
-
- FileDialogConfiguration fileDialogConfiguration = new FileDialogConfiguration.Builder()
- .withInitialDirectory(Globals.prefs.get(JabRefPreferences.WORKING_DIRECTORY)).build();
- DialogService ds = new FXDialogService();
-
- browse.addActionListener(
- e -> DefaultTaskExecutor.runInJavaFXThread(() -> ds.showFileOpenDialog(fileDialogConfiguration)
- .ifPresent(f -> fileDir.setText(f.toAbsolutePath().toString()))));
- builderPanel.add(browse);
- formBuilder.appendRows("2dlu, p");
- row += 2;
- formBuilder.add(builderPanel).xy(1, row);
- }
- formBuilder.appendRows("6dlu, p");
- formBuilder.add(doNotShowDialog).xy(1, row + 2);
-
- message.add(formBuilder.build());
-
- int answer = JOptionPane.showConfirmDialog(null,
- message, Localization.lang("Upgrade file"), JOptionPane.YES_NO_OPTION);
- if (doNotShowDialog.isSelected()) {
- Globals.prefs.putBoolean(JabRefPreferences.SHOW_FILE_LINKS_UPGRADE_WARNING, false);
- }
-
- if (answer == JOptionPane.YES_OPTION) {
- makeChanges(panel, parserResult, changeSettings.isSelected(), changeDatabase.isSelected(),
- setFileDir.isSelected() ? fileDir.getText() : null);
- }
- }
-
- private boolean isThereSomethingToBeDone() {
- return offerChangeSettings || offerChangeDatabase || offerSetFileDir;
- }
-
- /**
- * Check the database to find out whether any of a set of fields are used
- * for any of the entries.
- *
- * @param database The BIB database.
- * @param fields The set of fields to look for.
- * @return true if at least one of the given fields is set in at least one entry,
- * false otherwise.
- */
- private boolean linksFound(BibDatabase database, String[] fields) {
- for (BibEntry entry : database.getEntries()) {
- for (String field : fields) {
- if (entry.hasField(field)) {
- return true;
- }
- }
- }
- return false;
- }
-
- /**
- * This method performs the actual changes.
- *
- * @param fileDir The path to the file directory to set, or null if it should not be set.
- */
- private void makeChanges(BasePanel panel, ParserResult pr, boolean upgradePrefs,
- boolean upgradeDatabase, String fileDir) {
-
- if (upgradeDatabase) {
- // Update file links links in the database:
- NamedCompound ce = upgradePdfPsToFile(pr.getDatabase());
- panel.getUndoManager().addEdit(ce);
- panel.markBaseChanged();
- }
-
- if (fileDir != null) {
- Globals.prefs.put(FieldName.FILE + FilePreferences.DIR_SUFFIX, fileDir);
- }
-
- if (upgradePrefs) {
- // Exchange table columns:
- Globals.prefs.putBoolean(JabRefPreferences.FILE_COLUMN, Boolean.TRUE);
-
- // Modify General fields if necessary:
- // If we don't find the file field, insert it at the bottom of the first tab:
- if (!showsFileInGenFields()) {
- String gfs = Globals.prefs.get(JabRefPreferences.CUSTOM_TAB_FIELDS + "0");
- StringBuilder sb = new StringBuilder(gfs);
- if (!gfs.isEmpty()) {
- sb.append(';');
- }
- sb.append(FieldName.FILE);
- Globals.prefs.put(JabRefPreferences.CUSTOM_TAB_FIELDS + "0", sb.toString());
- Globals.prefs.updateEntryEditorTabList();
- }
- panel.frame().setupAllTables();
- }
- }
-
- private boolean showsFileInGenFields() {
- for (ListWrapLayout
, WrapLayout
,
- * or WrapLayout
.
- * @param align the alignment value
- * @param hgap the horizontal gap between components
- * @param vgap the vertical gap between components
- */
- public WrapLayout(int align, int hgap, int vgap) {
- super(align, hgap, vgap);
- }
-
- /**
- * Returns the preferred dimensions for this layout given the
- * visible components in the specified target container.
- * @param target the component which needs to be laid out
- * @return the preferred dimensions to lay out the
- * subcomponents of the specified container
- */
- @Override
- public Dimension preferredLayoutSize(Container target) {
- return layoutSize(target, true);
- }
-
- /**
- * Returns the minimum dimensions needed to layout the visible
- * components contained in the specified target container.
- * @param target the component which needs to be laid out
- * @return the minimum dimensions to lay out the
- * subcomponents of the specified container
- */
- @Override
- public Dimension minimumLayoutSize(Container target) {
- Dimension minimum = layoutSize(target, false);
- minimum.width -= (getHgap() + 1);
- return minimum;
- }
-
- /**
- * Returns the minimum or preferred dimension needed to layout the target
- * container.
- *
- * @param target target to get layout size for
- * @param preferred should preferred size be calculated
- * @return the dimension to layout the target container
- */
- private Dimension layoutSize(Container target, boolean preferred) {
- synchronized (target.getTreeLock()) {
- // Each row must fit with the width allocated to the container.
- // When the container width = 0, the preferred width of the container
- // has not yet been calculated so lets ask for the maximum.
-
- int targetWidth = target.getSize().width;
-
- if (targetWidth == 0) {
- targetWidth = Integer.MAX_VALUE;
- }
-
- int hgap = getHgap();
- int vgap = getVgap();
- Insets insets = target.getInsets();
- int horizontalInsetsAndGap = insets.left + insets.right + (hgap * 2);
- int maxWidth = targetWidth - horizontalInsetsAndGap;
-
- // Fit components into the allowed width
-
- Dimension dim = new Dimension(0, 0);
- int rowWidth = 0;
- int rowHeight = 0;
-
- int nmembers = target.getComponentCount();
-
- for (int i = 0; i < nmembers; i++) {
- Component m = target.getComponent(i);
-
- if (m.isVisible()) {
- Dimension d = preferred ? m.getPreferredSize() : m.getMinimumSize();
-
- if (d != null) {
- // Can't add the component to current row. Start a new row.
-
- if ((rowWidth + d.width) > maxWidth) {
- addRow(dim, rowWidth, rowHeight);
- rowWidth = 0;
- rowHeight = 0;
- }
-
- // Add a horizontal gap for all components after the first
-
- if (rowWidth != 0) {
- rowWidth += hgap;
- }
-
- rowWidth += d.width;
- rowHeight = Math.max(rowHeight, d.height);
- }
- }
- }
-
- addRow(dim, rowWidth, rowHeight);
-
- dim.width += horizontalInsetsAndGap;
- dim.height += insets.top + insets.bottom + (vgap * 2);
-
- // When using a scroll pane or the DecoratedLookAndFeel we need to
- // make sure the preferred size is less than the size of the
- // target container so shrinking the container size works
- // correctly. Removing the horizontal gap is an easy way to do this.
-
- Container scrollPane = SwingUtilities.getAncestorOfClass(JScrollPane.class, target);
-
- if (scrollPane != null) {
- dim.width -= (hgap + 1);
- }
-
- return dim;
- }
- }
-
- /*
- * A new row has been completed. Use the dimensions of this row
- * to update the preferred size for the container.
- *
- * @param dim update the width and height when appropriate
- * @param rowWidth the width of the row to add
- * @param rowHeight the height of the row to add
- */
- private void addRow(Dimension dim, int rowWidth, int rowHeight) {
- dim.width = Math.max(dim.width, rowWidth);
-
- if (dim.height > 0) {
- dim.height += getVgap();
- }
-
- dim.height += rowHeight;
- }
-}
diff --git a/src/main/java/org/jabref/gui/actions/StandardActions.java b/src/main/java/org/jabref/gui/actions/StandardActions.java
index b3b10e3aeaa..302bc7359bd 100644
--- a/src/main/java/org/jabref/gui/actions/StandardActions.java
+++ b/src/main/java/org/jabref/gui/actions/StandardActions.java
@@ -65,7 +65,7 @@ public enum StandardActions implements Action {
NEW_LIBRARY_BIBLATEX(Localization.lang("New %0 library", BibDatabaseMode.BIBLATEX.getFormattedName())),
OPEN_LIBRARY(Localization.lang("Open library"), IconTheme.JabRefIcons.OPEN, KeyBinding.OPEN_DATABASE),
IMPORT(Localization.lang("Import"), IconTheme.JabRefIcons.IMPORT),
- EXPORT(Localization.lang("Export"), IconTheme.JabRefIcons.EXPORT),
+ EXPORT(Localization.lang("Export"), IconTheme.JabRefIcons.EXPORT, KeyBinding.EXPORT),
MERGE_DATABASE(Localization.lang("Append library"), Localization.lang("Append contents from a BibTeX library into the currently viewed library")),
SAVE_LIBRARY(Localization.lang("Save library"), IconTheme.JabRefIcons.SAVE, KeyBinding.SAVE_DATABASE),
SAVE_LIBRARY_AS(Localization.lang("Save library as..."), KeyBinding.SAVE_DATABASE_AS),
@@ -74,7 +74,7 @@ public enum StandardActions implements Action {
IMPORT_INTO_NEW_LIBRARY(Localization.lang("Import into new library"), KeyBinding.IMPORT_INTO_NEW_DATABASE),
IMPORT_INTO_CURRENT_LIBRARY(Localization.lang("Import into current library"), KeyBinding.IMPORT_INTO_CURRENT_DATABASE),
EXPORT_ALL(Localization.lang("Export all entries")),
- EXPORT_SELECTED(Localization.lang("Export selected entries")),
+ EXPORT_SELECTED(Localization.lang("Export selected entries"), KeyBinding.EXPORT_SELECTED),
CONNECT_TO_SHARED_DB(Localization.lang("Connect to shared database"), IconTheme.JabRefIcons.CONNECT_DB),
PULL_CHANGES_FROM_SHARED_DB(Localization.lang("Pull changes from shared database"), KeyBinding.PULL_CHANGES_FROM_SHARED_DATABASE),
CLOSE_LIBRARY(Localization.lang("Close library"), Localization.lang("Close the current library"), IconTheme.JabRefIcons.CLOSE, KeyBinding.CLOSE_DATABASE),
diff --git a/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternPanel.java b/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternPanel.java
index 994452e5efa..e3796c623ee 100644
--- a/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternPanel.java
+++ b/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternPanel.java
@@ -15,6 +15,8 @@
import org.jabref.Globals;
import org.jabref.gui.BasePanel;
+import org.jabref.gui.actions.ActionFactory;
+import org.jabref.gui.actions.StandardActions;
import org.jabref.gui.help.HelpAction;
import org.jabref.logic.help.HelpFile;
import org.jabref.logic.l10n.Localization;
@@ -34,7 +36,6 @@ public class BibtexKeyPatternPanel extends Pane {
// default pattern
protected final TextField defaultPat = new TextField();
- private final HelpAction help;
private final int COLUMNS = 2;
@@ -45,7 +46,6 @@ public class BibtexKeyPatternPanel extends Pane {
public BibtexKeyPatternPanel(BasePanel panel) {
this.panel = panel;
- help = new HelpAction(Localization.lang("Help on key patterns"), HelpFile.BIBTEX_KEY_PATTERN);
gridPane.setHgap(10);
gridPane.setVgap(5);
buildGUI();
@@ -93,7 +93,7 @@ private void buildGUI() {
textFields.put(type.getName().toLowerCase(Locale.ROOT), textField);
- if (columnIndex == COLUMNS - 1) {
+ if (columnIndex == (COLUMNS - 1)) {
columnIndex = 0;
rowIndex++;
} else {
@@ -103,9 +103,9 @@ private void buildGUI() {
rowIndex++;
- Button help1 = new Button("?");
- help1.setOnAction(e -> new HelpAction(Localization.lang("Help on key patterns"), HelpFile.BIBTEX_KEY_PATTERN).getHelpButton().doClick());
- gridPane.add(help1, 1, rowIndex);
+ ActionFactory factory = new ActionFactory(Globals.prefs.getKeyBindingRepository());
+ Button help = factory.createIconButton(StandardActions.HELP, new HelpAction(Localization.lang("Help on key patterns"), HelpFile.BIBTEX_KEY_PATTERN).getCommand());
+ gridPane.add(help, 1, rowIndex);
Button btnDefaultAll1 = new Button(Localization.lang("Reset all"));
btnDefaultAll1.setOnAction(e -> {
@@ -118,7 +118,6 @@ private void buildGUI() {
gridPane.add(btnDefaultAll1, 2, rowIndex);
}
-
/**
* fill the given LabelPattern by values generated from the text fields
*/
@@ -140,8 +139,7 @@ private void fillPatternUsingPanelData(AbstractBibtexKeyPattern keypatterns) {
protected GlobalBibtexKeyPattern getKeyPatternAsGlobalBibtexKeyPattern() {
GlobalBibtexKeyPattern res = GlobalBibtexKeyPattern.fromPattern(
- JabRefPreferences.getInstance().get(JabRefPreferences.DEFAULT_BIBTEX_KEY_PATTERN)
- );
+ JabRefPreferences.getInstance().get(JabRefPreferences.DEFAULT_BIBTEX_KEY_PATTERN));
fillPatternUsingPanelData(res);
return res;
}
@@ -162,7 +160,7 @@ public void setValues(AbstractBibtexKeyPattern keyPattern) {
setValue(entry.getValue(), entry.getKey(), keyPattern);
}
- if (keyPattern.getDefaultValue() == null || keyPattern.getDefaultValue().isEmpty()) {
+ if ((keyPattern.getDefaultValue() == null) || keyPattern.getDefaultValue().isEmpty()) {
defaultPat.setText("");
} else {
defaultPat.setText(keyPattern.getDefaultValue().get(0));
diff --git a/src/main/java/org/jabref/gui/help/HelpAction.java b/src/main/java/org/jabref/gui/help/HelpAction.java
index ab7ae84e027..e8d410de343 100644
--- a/src/main/java/org/jabref/gui/help/HelpAction.java
+++ b/src/main/java/org/jabref/gui/help/HelpAction.java
@@ -1,11 +1,7 @@
package org.jabref.gui.help;
-import java.awt.Color;
-import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
@@ -14,7 +10,6 @@
import javax.swing.Action;
import javax.swing.Icon;
import javax.swing.JButton;
-import javax.swing.JLabel;
import javax.swing.KeyStroke;
import org.jabref.Globals;
@@ -91,20 +86,6 @@ public void setHelpFile(HelpFile urlPart) {
this.helpPage = urlPart;
}
- public JLabel getHelpLabel(String labelText) {
- JLabel helpLabel = new JLabel("" + labelText + "");
- helpLabel.setForeground(Color.BLUE);
- helpLabel.setCursor(new Cursor(Cursor.HAND_CURSOR));
- helpLabel.addMouseListener(new MouseAdapter() {
-
- @Override
- public void mouseClicked(MouseEvent e) {
- openHelpPage(helpPage);
- }
- });
- return helpLabel;
- }
-
@Override
public void actionPerformed(ActionEvent e) {
openHelpPage(helpPage);
diff --git a/src/main/java/org/jabref/gui/importer/actions/OpenDatabaseAction.java b/src/main/java/org/jabref/gui/importer/actions/OpenDatabaseAction.java
index 9a87333b386..67bd022cbc0 100644
--- a/src/main/java/org/jabref/gui/importer/actions/OpenDatabaseAction.java
+++ b/src/main/java/org/jabref/gui/importer/actions/OpenDatabaseAction.java
@@ -35,7 +35,6 @@
import org.jabref.logic.shared.exception.InvalidDBMSConnectionPropertiesException;
import org.jabref.logic.shared.exception.NotASharedDatabaseException;
import org.jabref.logic.util.StandardFileType;
-import org.jabref.migrations.FileLinksUpgradeWarning;
import org.jabref.model.database.BibDatabase;
import org.jabref.model.database.shared.DatabaseNotSupportedException;
import org.jabref.preferences.JabRefPreferences;
@@ -53,9 +52,6 @@ public class OpenDatabaseAction extends SimpleCommand {
// Migrations:
// Warning for migrating the Review into the Comment field
new MergeReviewIntoCommentAction(),
- // External file handling system in version 2.3:
- new FileLinksUpgradeWarning(),
-
// Check for new custom entry types loaded from the BIB file:
new CheckForNewEntryTypesAction()
);
diff --git a/src/main/java/org/jabref/gui/journals/JournalAbbreviationsUtil.java b/src/main/java/org/jabref/gui/journals/JournalAbbreviationsUtil.java
deleted file mode 100644
index 86a284cd78f..00000000000
--- a/src/main/java/org/jabref/gui/journals/JournalAbbreviationsUtil.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.jabref.gui.journals;
-
-import java.util.Collection;
-
-import javax.swing.table.DefaultTableModel;
-import javax.swing.table.TableModel;
-
-import org.jabref.logic.journals.Abbreviation;
-import org.jabref.logic.l10n.Localization;
-
-public class JournalAbbreviationsUtil {
-
- private JournalAbbreviationsUtil() {
- }
-
- public static TableModel getTableModel(Collection
"
- + Localization
- .lang("JabRef no longer supports 'ps' or 'pdf' fields.
File links are now stored in the 'file' field and files are stored in an external file directory.
To make use of this feature, JabRef needs to upgrade file links.
")
- + "
File\ links\ are\ now\ stored\ in\ the\ 'file'\ field\ and\ files\ are\ stored\ in\ an\ external\ file\ directory.
To\ make\ use\ of\ this\ feature,\ JabRef\ needs\ to\ upgrade\ file\ links.
=JabRef no longer supports 'ps' or 'pdf' fields.
File links are now stored in the 'file' field and files are stored in an external file directory.
To make use of this feature, JabRef needs to upgrade file links.
-This\ library\ uses\ outdated\ file\ links.=This library uses outdated file links.
Close\ library=Close library
Decrease\ table\ font\ size=Decrease table font size
diff --git a/src/test/java/org/jabref/logic/bibtexkeypattern/BibtexKeyGeneratorTest.java b/src/test/java/org/jabref/logic/bibtexkeypattern/BibtexKeyGeneratorTest.java
index 4ed5b5bb728..f09b091fb7e 100644
--- a/src/test/java/org/jabref/logic/bibtexkeypattern/BibtexKeyGeneratorTest.java
+++ b/src/test/java/org/jabref/logic/bibtexkeypattern/BibtexKeyGeneratorTest.java
@@ -1007,4 +1007,58 @@ public void generateKeyWithTwoModifiers() throws Exception {
entry.setField("title", "The Interesting Title");
assertEquals("theinterestingtitle", BibtexKeyGenerator.generateKey(entry, "title:lower:(_)"));
}
+
+ @Test
+ public void generateKeyWithTitleCapitalizeModifier() throws Exception {
+ BibEntry entry = new BibEntry();
+ entry.setField("title", "the InTeresting title longer than THREE words");
+ assertEquals("TheInterestingTitleLongerThanThreeWords", BibtexKeyGenerator.generateKey(entry, "title:capitalize"));
+ }
+
+ @Test
+ public void generateKeyWithShortTitleCapitalizeModifier() throws Exception {
+ BibEntry entry = new BibEntry();
+ entry.setField("title", "the InTeresting title longer than THREE words");
+ assertEquals("InterestingTitleLonger", BibtexKeyGenerator.generateKey(entry, "shorttitle:capitalize"));
+ }
+
+ @Test
+ public void generateKeyWithTitleTitleCaseModifier() throws Exception {
+ BibEntry entry = new BibEntry();
+ entry.setField("title", "A title WITH some of The key words");
+ assertEquals("ATitlewithSomeoftheKeyWords", BibtexKeyGenerator.generateKey(entry, "title:titlecase"));
+ }
+
+ @Test
+ public void generateKeyWithShortTitleTitleCaseModifier() throws Exception {
+ BibEntry entry = new BibEntry();
+ entry.setField("title", "the InTeresting title longer than THREE words");
+ assertEquals("InterestingTitleLonger", BibtexKeyGenerator.generateKey(entry, "shorttitle:titlecase"));
+ }
+
+ @Test
+ public void generateKeyWithTitleSentenceCaseModifier() throws Exception {
+ BibEntry entry = new BibEntry();
+ entry.setField("title", "A title WITH some of The key words");
+ assertEquals("Atitlewithsomeofthekeywords", BibtexKeyGenerator.generateKey(entry, "title:sentencecase"));
+ }
+
+ @Test
+ public void generateKeyWithAuthUpperYearShortTitleCapitalizeModifier() throws Exception {
+ BibEntry entry = new BibEntry();
+ entry.setField("author", AUTHOR_STRING_FIRSTNAME_FULL_LASTNAME_FULL_COUNT_1);
+ entry.setField("year", "2019");
+ entry.setField("title", "the InTeresting title longer than THREE words");
+ assertEquals("NEWTON2019InterestingTitleLonger", BibtexKeyGenerator.generateKey(entry, "[auth:upper][year][shorttitle:capitalize]"));
+ }
+
+ @Test
+ public void generateKeyWithYearAuthUpperTitleSentenceCaseModifier() throws Exception {
+ BibEntry entry = new BibEntry();
+ entry.setField("author", AUTHOR_STRING_FIRSTNAME_FULL_LASTNAME_FULL_COUNT_3);
+ entry.setField("year", "2019");
+ entry.setField("title", "the InTeresting title longer than THREE words");
+ assertEquals("NewtonMaxwellEtAl_2019_TheInterestingTitleLongerThanThreeWords", BibtexKeyGenerator.generateKey(entry, "[authors2]_[year]_[title:capitalize]"));
+ }
+
}
diff --git a/src/test/java/org/jabref/logic/msbib/MsBibAuthorTest.java b/src/test/java/org/jabref/logic/msbib/MsBibAuthorTest.java
index cbb37c47408..8736b6542e1 100644
--- a/src/test/java/org/jabref/logic/msbib/MsBibAuthorTest.java
+++ b/src/test/java/org/jabref/logic/msbib/MsBibAuthorTest.java
@@ -44,4 +44,11 @@ public void testGetLastName() {
MsBibAuthor msBibAuthor = new MsBibAuthor(author);
assertEquals("Bach", msBibAuthor.getLastName());
}
+
+ @Test
+ public void testGetVonAndLastName() {
+ Author author = new Author("John", null, "von", "Neumann", null);
+ MsBibAuthor msBibAuthor = new MsBibAuthor(author);
+ assertEquals("von Neumann", msBibAuthor.getLastName());
+ }
}
diff --git a/src/test/java/org/jabref/migrations/PreferencesMigrationsTest.java b/src/test/java/org/jabref/migrations/PreferencesMigrationsTest.java
index c646bab55bb..6a2ee9bc5e8 100644
--- a/src/test/java/org/jabref/migrations/PreferencesMigrationsTest.java
+++ b/src/test/java/org/jabref/migrations/PreferencesMigrationsTest.java
@@ -20,7 +20,7 @@ class PreferencesMigrationsTest {
private final String[] oldStylePatterns = new String[]{"\\bibtexkey",
"\\bibtexkey\\begin{title} - \\format[RemoveBrackets]{\\title}\\end{title}"};
private final String[] newStylePatterns = new String[]{"[bibtexkey]",
- "[bibtexkey] - [fulltitle]"};
+ "[bibtexkey] - [title]"};
@BeforeEach
void setUp() {