Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » D&D example
D&D example [message #168884] Mon, 21 January 2008 11:58 Go to next message
Eclipse UserFriend
Originally posted by: 14.08.99.gmx.de

Hi,

I'm looking for a example concerning drag&drop from any view. Does
anybody know a link or s.t.?

Thanks,
Guido
Re: D&D example [message #169078 is a reply to message #168884] Mon, 21 January 2008 16:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 14.08.99.gmx.de

Guido Schwab schrieb:
> I'm looking for a example concerning drag&drop from any view. Does
> anybody know a link or s.t.?

or more precisely: I have a TreeView and a GMF-graph and I want to drag
tree-elements into compartments. Problem: Where do I have to edit the
source code concerning drag source an drop-target...

b.r.,
Guido
Re: D&D example [message #169124 is a reply to message #169078] Mon, 21 January 2008 17:50 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Guido,

As an example I suggest generarted D&D functionality allowing you to D&D
model element from either generated model navigator (child nodes of domain/diagram
file) or EMF-generated editor. As a starting point see generated DropTargetListener
inner-class in ???DiagramEditor.

-----------------
Alex Shatalin
Re: D&D example [message #169210 is a reply to message #169124] Tue, 22 January 2008 08:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: 14.08.99.gmx.de

Hi!

I only find a class ???DiagramEditor in the ???.diagram.part-package,
but there is no inner-class (or s.t. else) DropTargetListener at
all...!?!?!?

B.r.

Guido
Re: D&D example [message #169400 is a reply to message #169210] Wed, 23 January 2008 10:12 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Guido,

Do you have diagram/model navigator generated for your diagram ( http://wiki.eclipse.org/GMF_2.0_New_and_Noteworthy#Diagram_C ontent_Navigator)?
Can you d&d elements from this navigator to the diagram (to create shortcuts
for them? If no try generating diagram with the possibility to create shortcuts
to the elements from original model.

-----------------
Alex Shatalin
Previous Topic:Editing model with nested containment relations
Next Topic:Re: DND from TreeViewer to GMF generated editor
Goto Forum:
  


Current Time: Thu Mar 28 17:58:55 GMT 2024

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

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

Back to the top