Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF EditPartViewer selection
GEF EditPartViewer selection [message #629760] Wed, 29 September 2010 13:44
cerealk  is currently offline cerealk Friend
Messages: 1
Registered: September 2010
Junior Member
I'm experimenting a strange issue developing Drag and Drop with GEF. If I start a drag operation of a not yet selected element in a the selected element got from EditPartViewer.getSelectedEditPart() is different from the one obtained via the SWT Tree control (Tree.getSelection()).

This appens only when I start the drag operation without selecting an element in the tree before starting the operation: steps to reproduce: - select an element in a treeviewe - start dragging an unselected element of the tree

now the method Tree.getSelection() return the dragged TreeItem but the EditPartViewer.getSelectedEditPart() still returns the selected editpart, not the dragged one.

How can I correct this behavior?
Previous Topic:Where is the 3.6.1 release?
Next Topic:Drag&Drop Palette elements in a grid
Goto Forum:

Current Time: Sun Jun 17 22:41:25 GMT 2018

Powered by FUDForum. Page generated in 0.01997 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top