-
-
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 drag and drop for groups -> groups #2632
Conversation
I will add my changes from the other PR to this one |
@Siedlerchr Really? Isn't the scope of this PR different? However, it yours and @tobiasdiez's decision whether this makes sense from the technical aspect. |
In fact it uses the same methods for listening/reaction of an DND Event. My changes would be simply an else case. |
Allright, then forget my objections 😉 |
* upstream/master: Donate to JabRef! Issuestats.com is down Add link to logo creator Improve perfomance of opening a database that still used the old groups format (#2636) Set POSIX filepermissions to 644 (#2637) Fix #2629: Removing entry from group updates view properly Remove empty tooltip in group panel Refactored around the PDF Annotation Importer (#2624) Fix last import issue Fix imports and some reformatting Fix wrong import order Add missing svg icon RIP old icon Add new logo files (#2164) # Conflicts: # src/main/java/org/jabref/gui/groups/GroupSelector.java
@tobiasdiez Drag and drop of entries works now as expected 🥇 |
@@ -67,7 +67,8 @@ public StringProperty filterTextProperty() { | |||
* We need to notify the {@link StateManager} about this change so that the main table gets updated. | |||
*/ | |||
private void onSelectedGroupChanged(GroupNodeViewModel newValue) { | |||
if (currentDatabase != stateManager.activeDatabaseProperty().get()) { | |||
//TODO: Can one of this be empty? | |||
if (currentDatabase.get() != stateManager.activeDatabaseProperty().get().get()) { |
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.
@tobiasdiez I am not sure if we should compare the values or if it is enough to check the object refs
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 think equals
is the cleanest solution
Thanks @Siedlerchr for making the groups great again! |
TransferableEntrySelection entrySelection = (TransferableEntrySelection) dragboard | ||
.getContent(DragAndDropDataFormats.ENTRIES); | ||
|
||
row.getItem().addEntriesToGroup(entrySelection.getSelection()); |
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.
Forgot to set succes true in the entries else part
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.
Pushed to master
Short question here: Drag-and-drop generally works in current Is this a known problem? Or should I open an issue? |
Good catch! I added it to the list of open group-related problems: #2599 |
Enable drag and drop in the group panel.
I also had to remove the "worker" aspect of the group worker, ie. now the entry list is updated immediately (this might lead to performance problems in bigger db's; but without this change JabRef would just hang after drop and down).
gradle localizationUpdate
?