-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix for multiple error messages in messed up source editor #5823
Conversation
Thanks for the fix. I don't know exactly what , but I remember we had issues with the code area when going up and down in the main table with an open entry editor. And also when importing?. I know that there was a reason why it was created new every time. |
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 cannot remember why the code area is re-created every time and I don't see any reason not to reuse it. I guess we simply took the original swing code, replaced the controls with javafx ones and didn't thought about reusing it. Let's try it and see if users report any problematic behavior.
The looks good to me. I've two small remarks/questions.
This should do the trick now. Apparently JavaFX fires the focus event after loading the next entry and registering a listener does not mean, it is also run. What I don't understand is the failing GUI test. It fails somehow during setting the test up trying to call getSourceString with an empty BibEntry. |
The new fix looks good to! I guess the test fails as |
* upstream/master: Fix for multiple error messages in messed up source editor (#5823) change to jdk 13 Fix obsolete " Remove obsolete TOC Fix hostname
Fixes #5820
JabRef created a new instance of CodeArea everytime an entry was selected and bound multiple listeners to the CodeArea and to the ValidationStatus in bindToEntry. Refactored it a little bit, so the CodeArea stays persistent and the error messages are only displayed once.
Did some minor refactorings to the other Validators and to modules.info too, to avoid warning messages from the IDE, and fixed a minor mistake from a previous PR in dark.css.
No screenshot, as there is no visual change.