Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to enable drag and drop from palette
How to enable drag and drop from palette [message #60624] Tue, 10 October 2006 13:35 Go to next message
Eclipse UserFriend
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 #60626 is a reply to message #60624] Tue, 10 October 2006 14:14 Go to previous messageGo to next message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
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,
Re: How to enable drag and drop from palette [message #80198 is a reply to message #60626] Wed, 22 November 2006 15:42 Go to previous message
Eclipse UserFriend
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
Previous Topic:"Guide GMFMap Creation"-Wizard Source?
Next Topic:properties tabsheet
Goto Forum:
  


Current Time: Sat Jul 27 16:34:33 GMT 2024

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

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

Back to the top