Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Drag and drop from palette and view
Drag and drop from palette and view [message #190150] Thu, 29 May 2008 16:50 Go to next message
Amro Al-Akkad is currently offline Amro Al-AkkadFriend
Messages: 33
Registered: July 2009
Member
hi!

I know somehow partly this question has been asked several times,
nevertheless I feel lost after checking threads in the current and old
newsgroup.

I have to provide drag and drop functionality for two things.

1)from palette (GEF palette): there for some elements drag and drop must
be provided, though not for all as for example for Connection Tools.
2)from a View containing a component list representing a component
repository-I'm going to use a List or Tree, or ScrolledComposite for this.

For 1) I tried to find out, if it is possible to define this in the
gmftool definition, but could not find a hint.

I saw the geoshapes editor providing drag and drop and selecting for some
elements. Unfortunately I could not find out how it was implemented.
Further I've discovered the
'org.eclipse.gmf.runtime.common.ui.services.dnd.dragDropList enerProviders',
but don't exactly know how to use it.

I've done this tutorial
( http://www.eclipse.org/articles/Article-GEF-dnd/GEF-dnd.html), but I'm
still not able to adapt it to my code.

From my point of view a GMF example project showing how to establish
drag&drop for the above mentioned points or sth similar would be quite
helpful?
Further I can upload any code to support this discussion.

Any help is appreciated!

Regards,
Amro
Example showing/explaining Drag and drop from palette and view into editor [message #191020 is a reply to message #190150] Wed, 04 June 2008 14:50 Go to previous messageGo to next message
Amro Al-Akkad is currently offline Amro Al-AkkadFriend
Messages: 33
Registered: July 2009
Member
hi!

Does someone know an example project,
where you can see how they realized Drag'n'Drop?
In eclipse community this 'monkey see, monkey do' approach is quite
common,
but i could not find an appropriate example project.
I need to drag from:
- palette (tool palette) to the editor, and
- a tree, which is kept in a different view

and drop into the editor.
Any hints are great?

Regards,
Amro
Re: Example showing/explaining Drag and drop from palette and view into editor [message #192664 is a reply to message #191020] Sat, 14 June 2008 18:36 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hi Amro.

> I need to drag from:
> - palette (tool palette) to the editor
Try to hold Ctrl while clicking and dragging the palette entry

HTH

Axel
Re: Example showing/explaining Drag and drop from palette and view into editor [message #192696 is a reply to message #192664] Sun, 15 June 2008 08:52 Go to previous message
Amro Al-Akkad is currently offline Amro Al-AkkadFriend
Messages: 33
Registered: July 2009
Member
hi Axel!

this does not really work, and further it's not how D'n'D is supposed to
work.

It's a pity, that there is no good support for this kind of standard
functionality. I'd have expected to find an explanation in one of the
'getting started' tutorial.
...hmm, you can't always get what you wa-a-ant :(

Regards,
Amro
Previous Topic:Synchronization of diagram editors and viewers without a shared editing domain
Next Topic:Remove the default create-connection feedback.
Goto Forum:
  


Current Time: Fri Apr 26 04:49:36 GMT 2024

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

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

Back to the top