-
-
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
Groups: Union/Intersection: needs re-selection of groups to take effect #6998
Comments
Good observation, guess it's related to the fact The information message shows the current mode. The toggle button hover should always show the next mode. |
@Siedlerchr In the preferences, do the two radio buttons "Display only entries belonging to all selected groups" and "Display all entries belonging to one or more of the selected entries" could be removed? (what is their use?) |
I looked ab bit more into this. jabref/src/main/java/org/jabref/gui/maintable/MainTableDataModel.java Lines 46 to 56 in fcf6146
Here the value is used. jabref/src/main/java/org/jabref/gui/maintable/MainTableDataModel.java Lines 74 to 80 in fcf6146
A solution would be to add another property to the stateManager, e.g. jabref/src/main/java/org/jabref/gui/groups/GroupSidePane.java Lines 64 to 65 in 8777c16
This property needs then to be passed to the above listed group matcher |
Note, that this issue appears to (indirectly) be related to the problem that there is still not floating mode available for the main table in JabRef 5 (#4237; see also comment here: #4237 (comment)). Implementing the floating mode might (?) solve some of the groups issues mentioned here by design. Sorry for keeping pointing to that issue, but as long as it is not implemented I cannot switch from JabRef 3.8.2 to the new version 5. |
I can replicate this. Looking forward to this bugfix.
|
Can maybe solved with the new preferences model we started to implement. See #8047 |
I can't reproduce this in the latest development version. Now, Union/Intersection will take effect after reselecting the groups. |
True. Closing this :) |
One could make the argument though, that no re-selection of groups should be necessary for the change to take effect. Maybe worthy of being a Koppor issue. |
Agree - having to reselect the groups is not intuitive. |
JabRef 5.2--2020-10-07--4b1b7b4
Linux 4.9.0-13-amd64 amd64
Java 15
The group pane allows to choose between an intersection and a union when selecting several groups.
Groups: Union/Intersection: need restart of groups to take effect
Issue: When clicking on the Intersection/Union button, an information message is displayed, but the list of entries in the table of entries is not changed. A restart of JabRef is needed for the selected mode to become active. A restart should not be needed.
Steps to reproduce the behavior:
Here you should have 1 entry displayed (if you are in intersection mode) or 48 entries displayed (if you are in union mode)
An information message at the bottom of the window confirms the change,
but the number of displayed entries is still the same.
If you had one entry displayed, you now get 48, and vice-versa.
Note 1: when clicking on the union/intersection button, the aspect of the button is not always changed
Note 2: the hovering message ("Toggle union" or "Toggle intersection") can contradict the information message. E.g. hovering message is "Toggle union", and after the click, the information message is "Group view mode set to intersection".
Note 3: resetting the preferences did not change the behavior.
Note 4: In the preferences, the "Groups" tab has two radio buttons: "Display only entries belonging to all selected groups" and "Display all entries belonging to one or more of the selected entries". This seems equivalent to Intersection and Union, respectively. What is their use?
Edit: Meanwhile some progress has been made. What is left to do:
The text was updated successfully, but these errors were encountered: