-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Tabular UI for naming linked files #12624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/main/java/org/jabref/gui/commonfxcontrols/PatternSuggestionCell.java
Show resolved
Hide resolved
src/main/java/org/jabref/gui/libraryproperties/keypattern/KeyPatternPropertiesViewModel.java
Show resolved
Hide resolved
src/main/java/org/jabref/gui/libraryproperties/keypattern/KeyPatternPropertiesViewModel.java
Show resolved
Hide resolved
src/main/java/org/jabref/gui/linkedfile/LinkedFileNamePatternsPanel.java
Show resolved
Hide resolved
src/main/java/org/jabref/gui/linkedfile/LinkedFileNamePatternsPanel.java
Show resolved
Hide resolved
private final StringProperty pattern = new SimpleStringProperty(""); | ||
|
||
public LinkedFileNamesPanelItemModel(EntryType entryType, String pattern) { | ||
Objects.requireNonNull(entryType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of Objects.requireNonNull is discouraged. Instead, the @nonnull annotation from JSpecify should be used to ensure non-null values.
|
||
public LinkedFileNamesPanelItemModel(EntryType entryType, String pattern) { | ||
Objects.requireNonNull(entryType); | ||
Objects.requireNonNull(pattern); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of Objects.requireNonNull is discouraged. Instead, the @nonnull annotation from JSpecify should be used to ensure non-null values.
src/main/java/org/jabref/gui/linkedfile/LinkedFileNamePatternsPanelViewModel.java
Show resolved
Hide resolved
src/main/java/org/jabref/gui/preferences/citationkeypattern/CitationKeyPatternTabViewModel.java
Show resolved
Hide resolved
src/main/java/org/jabref/gui/preferences/citationkeypattern/CitationKeyPatternTabViewModel.java
Show resolved
Hide resolved
JUnit tests are failing. You can see which checks are failing by locating the box "Some checks were not successful" on the pull request page. To see the test output, locate "Tests / Unit tests (pull_request)" and click on it. You can then run these tests in IntelliJ to reproduce the failing tests locally. We offer a quick test running howto in the section Final build system checks in our setup guide. |
src/main/java/org/jabref/gui/linkedfile/LinkedFileNamePatternsPanel.java
Show resolved
Hide resolved
src/main/java/org/jabref/gui/linkedfile/LinkedFileNamePatternsPanelViewModel.java
Show resolved
Hide resolved
|
||
public class CitationKeyPatternTabViewModel implements PreferenceTabViewModel { | ||
|
||
private static final String DEFAULT_ENTRY_TYPE = "default"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Literals in code should be private final or take a Java comment, except for constant declarations. This is a constant declaration, so it is acceptable.
src/main/java/org/jabref/gui/preferences/linkedfiles/LinkedFilesTabViewModel.java
Show resolved
Hide resolved
src/main/java/org/jabref/gui/preferences/linkedfiles/LinkedFilesTabViewModel.java
Show resolved
Hide resolved
src/main/java/org/jabref/logic/citationkeypattern/GlobalCitationKeyPatterns.java
Show resolved
Hide resolved
src/main/java/org/jabref/logic/linkedfile/AbstractLinkedFileNamePatterns.java
Show resolved
Hide resolved
Your pull request conflicts with the target branch. Please merge |
@trag-bot didn't find any issues in the code! ✅✨ |
Closes #11368
This PR adds a tabular construct similar to "Key patterns" for "Linked files name" in the Linked files tab in preferences.
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if change is visible to the user)