Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Shortcuts working but not drag-drop
Shortcuts working but not drag-drop [message #483579] Wed, 02 September 2009 08:20 Go to next message
Janred  is currently offline Janred Friend
Messages: 20
Registered: August 2009
Junior Member
Hello all,

In my project, I have configured shortcut functionality between
different editors sharing the same model. The shortcut functionlity
works without a problem but I am not able to execute the same process
using drag-drop functionality.

In other words, i cannot drag elements from the "Project Explorer" to my
diagram.I have read older posts and have not found a similar issue.

On debugging I have come across the following issues :
1. The getObjectsBeingDroppe() method In my **DiagramEditor gives back
the correct object
2. The corresponding isEnabled() method in the DiagramDropTargetListener
checks if the Compound commands could be executed or not.
In this
List(ToggleCanonicalModeCommand,Command$1$ChainedCompoundCom mand,ToggleCanonicalModeCommand)

Command$1$ChainedCompoundCommand always return false and I think that
the drop is not executed because of this....

can someone give me a clue as to what could be wrong with my
configuration or where I could start towards a solution

thx
Jan Red
Re: Shortcuts working but not drag-drop [message #483821 is a reply to message #483579] Thu, 03 September 2009 08:42 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Jan,

Do you have DiagramDragDropEditPolicy installed with DRAG_DROP_ROLE in ???EditPart
generated for the diagram? I think the command you are talking about came
from there, so you can put a reakpoint there to see the reason..

-----------------
Alex Shatalin
Previous Topic:Use image in FigureDescriptor
Next Topic:Create a circle and Square
Goto Forum:
  


Current Time: Fri Apr 26 03:25:13 GMT 2024

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

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

Back to the top