Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 197131

Summary: Drag and Drop inside a gallery
Product: z_Archived Reporter: Volker Renneberg <ritchie>
Component: NebulaAssignee: Nicolas Richeton <nicolas.richeton>
Status: CLOSED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: trevor
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
subclass of GalleryRenderer showing findNearestFollowingItem() for DnD none

Description Volker Renneberg CLA 2007-07-19 08:58:04 EDT
Hi!

Like Picasa allows to reorder the pictures in a picture gallery, this feature would also be very nice to have it supported by the Nebula-Gallery widget.

Cheers
Volker
Comment 1 Trevor Campbell CLA 2008-04-24 20:34:37 EDT
Created attachment 97549 [details]
subclass of GalleryRenderer showing findNearestFollowingItem() for DnD
Comment 2 Trevor Campbell CLA 2008-04-24 20:41:19 EDT
I found this pretty easy to add to my application.  The biggest issue was finding where the item was dropped.  I subclassed the renderer I use and added a method to help do that findNearestFollowingItem().  It is a bit rough, but works for me.  The only other issue I have is trying to keep the scroll position of the gallery stable after it is refreshed.

In my code I just update my model and then clear and refresh the gallery which I created as SWT.VIRTUAL.  As I only have a maximum of about 200 items this appears instantaneous to me.


Comment 3 Wim Jongman CLA 2019-12-12 15:58:08 EST
This bug does not have a target milestone assigned and is automatically closed as part of the 2.3.0 release cleanup.

It could be that this bug is accidentally closed for which we apologize.

If this bug is still relevant, please re-open and set a target milestone.