Drag and drop from palette issue [message #689337] |
Mon, 27 June 2011 13:25 |
Lior Missing name Messages: 18 Registered: February 2011 |
Junior Member |
|
|
Hi everyone,
I recently enabled our users to add elements from the palette using drag and drop
(By implementing what was suggested in the wiki:
http://wiki.eclipse.org/GMF_Newsgroup_Q_and_A#How_to_enable_drag-n-drop_from_the_palette.3F )
When adding an element in the 'ordinary way' (via pointing and clicking) a label editor gets open for users to edit one of the labels. ( a small text box at the exact location of the label... )
When adding elements via drag and drop, this editor doesn't get open for some reason.
I tracked the problem down to a call to a method called 'performDirectEdit()' in the label's editpart.
Problem is, couldn't find a way to explicitly call it when I inspected the code that is being run when dragging and droping elements.
Does anyone have any idea how to invoke this label edior upon element creation (both with drag and drop and the usual way)
Thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.03166 seconds