How to enable drag and drop from palette [message #60624] |
Tue, 10 October 2006 13:35 |
Eclipse User |
|
|
|
Originally posted by: contact.noelios.com
It seems that the only way to create nodes using the palette is by first
clicking on the tool from the palette, releasing the button, then moving
the mouse to the creation point on the canvas (a "+" sign is displayed
with the mouse cursor) then clicking again to actually create a new node.
I have a user request for "traditional" drag&drop where you would
left-click on a palette tool, move the mouse to the drop point (keeping
the mouse button pressed) and release the mouse button in order to
create the node.
I've found two bug reports that claim that drag&drop is available
(resolved/fixed):
"Can not add elements to diagram doing drag and drop from palette"
https://bugs.eclipse.org/bugs/show_bug.cgi?id=113580
"[req] Support drag-n-drop"
https://bugs.eclipse.org/bugs/show_bug.cgi?id=114224
Is this possible in GMF 1.0.1? Is this a behavior inherited from GEF
that can't be changed?
Thanks,
--
Jerome Louvel
http://www.noelios.com
|
|
|
|
Re: How to enable drag and drop from palette [message #80198 is a reply to message #60626] |
Wed, 22 November 2006 15:42 |
Eclipse User |
|
|
|
Originally posted by: contact.noelios.com
Thanks Cherie for the reply, it indeed works fine at the runtime level.
I don't know why it's not working for generated diagrams. I've entered a
bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=165452
Thanks,
Jerome
Cherie Revells :
> Jerome,
>
> This works in the GMF Geoshapes Example, but not in the generated Taipan
> Example so it looks like the GMF generation capabilities does not
> support this yet. Take a look at PaletteToolTransferDropTargetListener
> to see how this is implemented in the GMF Runtime.
>
> Regards,
> Cherie
>
> Jerome Louvel wrote:
>> It seems that the only way to create nodes using the palette is by
>> first clicking on the tool from the palette, releasing the button,
>> then moving the mouse to the creation point on the canvas (a "+" sign
>> is displayed with the mouse cursor) then clicking again to actually
>> create a new node.
>>
>> I have a user request for "traditional" drag&drop where you would
>> left-click on a palette tool, move the mouse to the drop point
>> (keeping the mouse button pressed) and release the mouse button in
>> order to create the node.
>>
>> I've found two bug reports that claim that drag&drop is available
>> (resolved/fixed):
>>
>> "Can not add elements to diagram doing drag and drop from palette"
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=113580
>>
>> "[req] Support drag-n-drop"
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=114224
>>
>> Is this possible in GMF 1.0.1? Is this a behavior inherited from GEF
>> that can't be changed?
>>
>> Thanks,
--
Jerome Louvel
http://www.noelios.com
|
|
|
Powered by
FUDForum. Page generated in 0.04566 seconds