-
-
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
Library sort order get lost #6091
Comments
Hello, |
@Hugoo98 Sure, go ahead! To me this looks like some issue with storing the properties and loading them from the preferences. |
@Siedlerchr thank you very much, I will try to do it and keep you posted. |
Hi @Hugoo98, im very sorry, I already startet work on this issue a few days ago, but did not uploaded my draft as a PR. I hope you did not put too much effort yet in it. Especially this one is a bit more complicated, since the library properties dialog is a little bit screwed up... 🙈 Maybe we can work on this together? |
Hi @calixtus no no i haven't started yet but i sent it to my teacher and he said it might be interesting. |
Good, JabRef always welcomes students who would like to practice software architecture and programming. I'll leave than the rework of SaveOrderConfigPanel to you. If you have questions, don't hesitate to ask us, we always like to help. My original plan was to replace the three comboBoxes with a single TableView, offering the user the ability to add more than three SortCriteria. Fortunately SaveOrderConfig already works with a LinkedList in its data model, so you probably don't have to change too much outside SaveOrderConfigPanel and SaveOrderConfigPanel. This would imply you add a CheckBoxTableCell in gui.utils (for a similar example take a look at @Siedlerchr s implementation of RadioButtonTableCell). But maybe you have a better idea. Please take a look at my PR. The finished result must respect the mvvm-design pattern and should respect the design principles of JabRef (the finished result should fit in the common look and feel). SortOrderPanel should only be a fx control and the data should be handled in the LibraryPropertiesDialogViewModel / ExportSortingTabView. You can base your work on my branch. I will try to hurry to refactor the still remaining parts that are still illegally tangled to the LibraryPropertiesView / ExportSortingTabView, so you have a clear workspace for your work. Good luck and have fun. |
You are lucky, as javafx already has a CheckboxTableCell you can use. |
ok thanks @calixtus i will take a look at your PR and i will keep you posted |
fixes JabRef#6091 Co-authored-by: Heriniaina Randrianasolo <hjsrandrianasolo@gmail.com> Co-authored-by: Omar Tachour <omar.tchr@hotmail.com> Co-authored-by: Sadji Micipsa <micipsasadji@gmail.com>
JabRef 5.0--2020-03-06--2e6f433
Linux 4.9.0-12-amd64 amd64
Java 13.0.2
In Library > Library properties, the export sort order can be specified.
However, the choice is not memorized.
Steps to reproduce the behavior:
In my case, the sort order was:
Like:
The initial sort order is displayed:
The text was updated successfully, but these errors were encountered: