Skip to main content



      Home
Home » Modeling » Graphiti » Drag and Drop(Why does it work / not work in different cases)
Drag and Drop [message #552456] Thu, 12 August 2010 05:53 Go to next message
Eclipse UserFriend
In the tutorial example I am trying to drag and drop EClasses to the editor.
When I expand the Ecore model in the package explorer and drag and drop from there, this work fine.
When I open the Ecore model in a tree editor (the default one) and I drag and drop from there it doesn't allow me to drop it in the editor.

What is the difference and what should I do to make them both work?

-- Jos
Re: Drag and Drop [message #553124 is a reply to message #552456] Mon, 16 August 2010 10:12 Go to previous messageGo to next message
Eclipse UserFriend
Jos,

I tried dto debug this, but couldn't get a hook. The Graphiti framework does
not get notified of such a drag&drop operation. It seems that the Ecore
model editor does not support such a drag operation.

-Michael

"Jos Warmer" <jos.warmer@ordina.nl> wrote in message
news:i40gab$gsn$1@build.eclipse.org...
> In the tutorial example I am trying to drag and drop EClasses to the
> editor. When I expand the Ecore model in the package explorer and drag and
> drop from there, this work fine.
> When I open the Ecore model in a tree editor (the default one) and I drag
> and drop from there it doesn't allow me to drop it in the editor.
>
> What is the difference and what should I do to make them both work?
>
> -- Jos
Re: Drag and Drop [message #562240 is a reply to message #552456] Mon, 16 August 2010 10:12 Go to previous messageGo to next message
Eclipse UserFriend
Jos,

I tried dto debug this, but couldn't get a hook. The Graphiti framework does
not get notified of such a drag&drop operation. It seems that the Ecore
model editor does not support such a drag operation.

-Michael

"Jos Warmer" <jos.warmer@ordina.nl> wrote in message
news:i40gab$gsn$1@build.eclipse.org...
> In the tutorial example I am trying to drag and drop EClasses to the
> editor. When I expand the Ecore model in the package explorer and drag and
> drop from there, this work fine.
> When I open the Ecore model in a tree editor (the default one) and I drag
> and drop from there it doesn't allow me to drop it in the editor.
>
> What is the difference and what should I do to make them both work?
>
> -- Jos
Re: Drag and Drop [message #649578 is a reply to message #562240] Wed, 19 January 2011 13:52 Go to previous message
Eclipse UserFriend
I am trying to add drag and drop behavior to my Graphiti diagram. There is, however nothing in the documentation or tutorial on how to deal with it. I can drag and drop an element from my model into a GMF diagram, but if I drag the same object from my model over the Graphiti diagram I only see the "cannot drop" icon. It seems that the drag from my model explorer works because it can be dropped in the GMF editor.

How can I get ahold on what is dragged on the Graphiti editor and how can I handle this ?

Jos
Previous Topic:Create ICreateContext
Next Topic:Connection as polyline with arrow at the end
Goto Forum:
  


Current Time: Sun Jul 13 18:14:50 EDT 2025

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

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

Back to the top