-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add referenced entry's observers to update the entry in the main-table #7754
Open
SuXiChangZhen
wants to merge
9
commits into
JabRef:main
Choose a base branch
from
SuXiChangZhen:fix-for-issue-7730
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0468fa8
fix for issue 7730
SuXiChangZhen d0a522a
fix checkstyle
SuXiChangZhen abcdcad
Fix caching
k3KAW8Pnf7mkmdSMPHz27 1b50be6
Remove wrapper for `getReferencedEntry`
k3KAW8Pnf7mkmdSMPHz27 d14b099
Merge branch 'main' into fix-for-issue-7730
Siedlerchr 3f6ba17
Merge branch 'main' into fix-for-issue-7730
k3KAW8Pnf7mkmdSMPHz27 a58e5d3
Merge remote-tracking branch 'SuXiChangZhen/fix-for-issue-7730' into …
k3KAW8Pnf7mkmdSMPHz27 d04621a
Merge branch 'main' into fix-for-issue-7730
koppor d2242d0
Merge branch 'main' into fix-for-issue-7730
Siedlerchr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't know enough of JavaFX to tell you for sure how to address this. I'd suggest not removing the caching (
fieldValues.get(fields);
) and instead deal with the dependencies differently.StringBinding
and use .bind and .unbind to "manually" deal with the dependencies. (this is probably not a good approach)ObjectBinding
?) and have it handle changes to the referenced entry. In this scenario, theStringBinding
has thisObjectBinding
among its dependencies instead of the referenced bibentry'sgetObservables()
.entry.getFieldBinding(StandardField.CROSSREF)
OptionalBinding<BibEntry> referencedBibEntry
FXCollections.observableArrayList(BibEntry::getObservables)
) updated withtheEasyBind.subscribe. That should keep the list up-to-date when the referencedifValuePresent
method of theOptionalBinding<BibEntry>
BibEntry
is changed/removed and when the observables in the referencedbibEntry.getObservables
are modifiedNote that the two last approaches should be used or called from the constructor since they will update on changes to the referenced
BibEntry
.I'd appreciate it if someone with more experience of JavaFX chimes in with opinions 😛
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.
Discussion:
to
Changes to c are not reflected accordingly.