-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Refactor IoC - A: Extract Entry Editor #12210
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
Conversation
fe21d9b
to
f247c7c
Compare
# Conflicts: # src/main/java/org/jabref/gui/frame/JabRefFrame.java
Related historic PRs:
Side note: I found the PR for the maintable JavaFX migration: #3621 (and #3591) |
There can only be one. |
Checked it, would require more refactoring and would overload this pr even more. |
src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FulltextSearchResultsTab.java
Show resolved
Hide resolved
# Conflicts: # src/main/java/org/jabref/gui/frame/JabRefFrame.java
@trag-bot didn't find any issues in the code! ✅✨ |
The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build. |
* Move EntryEditor to JabRefFrame * Make activeTab observable * Accept no tab * Accept no tab in preview * Migrate showBottomPane to property * Show Editor * Fix NPE * Fixed not showing * Fix duplication of tabs and npe on exit * Fix height * Fix menu item * Cleanup and streamline * Fix test * RewriteRun * Dynamize databaseContext * Codestyle and todo * Fix search sync * Changed fixme comment * Fixed runaway process and simplified DirectoryMonitor * Fix PreviewViewer * Dynamized SourceTab * Dynamized FileAnnotationTab * Added todo comment for future rewrite of entry editor * wip * Fix tests * Checkstyle * l10n and GuiTest * CleanUps * more CleanUp --------- Co-authored-by: Carl Christian Snethlage <calixtus@users.noreply.github.com>
* Move EntryEditor to JabRefFrame * Make activeTab observable * Accept no tab * Accept no tab in preview * Migrate showBottomPane to property * Show Editor * Fix NPE * Fixed not showing * Fix duplication of tabs and npe on exit * Fix height * Fix menu item * Cleanup and streamline * Fix test * RewriteRun * Dynamize databaseContext * Codestyle and todo * Fix search sync * Changed fixme comment * Fixed runaway process and simplified DirectoryMonitor * Fix PreviewViewer * Dynamized SourceTab * Dynamized FileAnnotationTab * Added todo comment for future rewrite of entry editor * wip * Fix tests * Checkstyle * l10n and GuiTest * CleanUps * more CleanUp --------- Co-authored-by: Carl Christian Snethlage <calixtus@users.noreply.github.com>
Instead of having an instance of the EntryEditor for every LibraryTab - one is enough. One EntryEditor to rule them all, one EntryEditor to find them, one Entryeditor to bring them all and in the bottom of the interface bind them.
Introduced
Todo:
Move Open/Close of EntryEditor to JabRefFrameAdapt EntryEditor to follow observables and to tolerate no entryAdapt StateManager from DatabaseContext to LibraryTab? (invalid)Fix remaining bugs:Not showing anythingNPE on exitOpen entry editor menu itemEntry editor maximized when openExtract refs to library tab from Entry Editorpostponed to later PR, requires refactoring of GlobalSearchBar and activeSearchQuery for sync issues.
Fix issue about lost sync on startupwas present before, postponed to later prGoal:
Level of abstraction (StateManager should use LibraryTab instead of BibDatabaseContext)postponed to later pr. would overload this one
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if change is visible to the user)