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 🥇 |
| 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.
@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.
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.
Forgot to set succes true in the entries else part
|
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?