Reset and Import for abbreviation prefs and small fixes#15503
Conversation
…ournal not read from preferences
Review Summary by QodoFix import and reset for JournalAbbreviationPreferences WalkthroughsDescription• Fixed import and reset functionality for JournalAbbreviationPreferences • Added default constructor and getDefault() method to JournalAbbreviationPreferences • Implemented setAll() method for proper preference synchronization • Fixed FJournal field not being restored when loading preferences • Removed hardcoded default values from JabRefCliPreferences initialization Diagramflowchart LR
A["JournalAbbreviationPreferences"] -->|"add default constructor"| B["getDefault()"]
A -->|"add setAll()"| C["Synchronize preferences"]
D["JabRefCliPreferences"] -->|"use getDefault()"| B
D -->|"call setAll()"| C
D -->|"clear()"| E["Reset to defaults"]
D -->|"importPreferences()"| F["Load from backing store"]
G["JournalAbbreviationsTabViewModel"] -->|"setValues()"| H["Restore FJournal field"]
File Changes1. jabgui/src/main/java/org/jabref/gui/preferences/journals/JournalAbbreviationsTabViewModel.java
|
Code Review by Qodo
|
Related issues and pull requests
Follow-up #15395
PR Description
Steps to test
Open File > Preferences
Clear or import preference
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)