PreviousNextTracker indexSee it online !

(19/22) 3613117 - Patch for feature request - ID:3605445 (Drag and Drop)

This patch adds drag and drop functionality to the file browser. DnD happens over the filename column only, so previous functons like selecting multiple files were preserved. Using shift,control,alt over the filename column were also left unchanged.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
History: https://sourceforge.net/tracker/?func=detail&aid=3605445&group_id=588&atid=350588
https://sourceforge.net/tracker/?func=detail&atid=350588&aid=1910639&group_id=588
https://sourceforge.net/tracker/index.php?func=detail&aid=1910639&group_id=588&atid=350588
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Issues: dnd uses VFSBrowser.rename(). We found a bug associated with updating the directory structure after moving files (refer: https://sourceforge.net/tracker/?func=detail&aid=3613115&group_id=588&atid=100588). It was there before, but our patch uses that function more often.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Made by: Bence Pinter, Laszlo Schmidt, Zsombor Franczia

Submitted bcooper0 - 2013-05-11 - 18:48:48z Assigned ezust
Priority 5 Category general
Status Pending Group None
Resolution Rejected Visibility No

Comments

2013-08-10 - 03:00:22z
ezust
nice! But if I am holding the "ctrl" key, it doesn't copy the file, it still moves it.
2013-08-10 - 03:00:51z
ezust
it should change the icon to a + sign and copy instead of move when the user has the ctrl-key held down.
2013-08-10 - 03:11:49z
ezust
This patch changes the way multiple selection works in the file system browser.
Before, I could click+drag to select multiple files and perform operations on them as a group.
Now I can't, because the drag handler kicks in before I have finished making my selection.

Also, it seems to work with only a single selection.
please fix these issues and submit again - it is a nice start.

Attachments

2013-05-11 - 18:48:48z
bcooper0
jedit_drag_and_drop_ID_3605445.patch

added a new class to the browser package (DragAndDropHandler.java, + one line to BrowserView.java)