Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 97549 Details for
Bug 197131
Drag and Drop inside a gallery
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
subclass of GalleryRenderer showing findNearestFollowingItem() for DnD
ImprezzeoGroupRenderer.java (text/x-java), 1.18 KB, created by
Trevor Campbell
on 2008-04-24 20:34:37 EDT
(
hide
)
Description:
subclass of GalleryRenderer showing findNearestFollowingItem() for DnD
Filename:
MIME Type:
Creator:
Trevor Campbell
Created:
2008-04-24 20:34:37 EDT
Size:
1.18 KB
patch
obsolete
>// Imprezzeo Pty Limited (c) 2008. > >package com.imprezzeo.cbir.workbench.view; > >import org.eclipse.nebula.widgets.gallery.GalleryItem; >import org.eclipse.nebula.widgets.gallery.NoGroupRenderer; >import org.eclipse.swt.graphics.Point; > >/** > * We extend the No Group renderer to support Drag and drop between > * Items in the gallery. > */ >public class ImprezzeoGroupRenderer extends NoGroupRenderer >{ > > /** > * Get the Item at or nearest following the coordinates. > * @param group The group > * @param coords point > * @return A GalleryItem > */ > public GalleryItem findNearestFollowingItem(GalleryItem group, Point coords) > { > if (group == null) > { > return null; > } > GalleryItem item = getItem(group, coords); > if (item == null) > { > // Try for next item on the row > Point newPoint = new Point(coords.x + margin, coords.y); > item = getItem(group, newPoint); > } > if (item == null) > { > // Try for the next row > Point newPoint = new Point(margin + 1, coords.y + itemHeight); > item = getItem(group, newPoint); > } > return item; > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 197131
: 97549