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 org.eclipse.gef.ui.parts.TreeViewer 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:Open a Wizard from the Palette?
Goto Forum:
  


Current Time: Mon Dec 22 10:04:35 GMT 2014

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

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