Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:53 Go to next message
Jos Warmer is currently offline Jos WarmerFriend
Messages: 66
Registered: July 2009
Member
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 14:12 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 14:12 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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 18:52 Go to previous message
Jos Warmer is currently offline Jos WarmerFriend
Messages: 114
Registered: October 2010
Senior Member
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: Fri Apr 19 01:12:03 GMT 2024

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

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

Back to the top