Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » RootEditPart 'eats' DragnDrop-Operation
RootEditPart 'eats' DragnDrop-Operation [message #209320] Thu, 23 October 2008 12:56 Go to next message
Eclipse UserFriend
Originally posted by: uwe.suedbeck.koeln.de

Hello everybody,

In my perspective there is one editor and two views. A Tree and a Grid.
The Drag&Drop from the Tree uses LocalSelectionTransfer. The Grid uses
TextTransfer. I have registered DropTargetListeners for both
TransferTypes on my EditorDiagram.
On my RootEditpart i have registered a DragnDropRole that returns an
UnexecutableComand to prohibit DragnDrop on the Root. My EditParts have
DragnDrop Roles that return Commands where at this point i only do some
Debugs and try to determine whats going on.

Drag&Drop from Tree works fine, i can not Drop on Root but on my
Editparts as i wanted, but from the Grid i encounter some strange
behavior: When i start dragging from the Grid i can see the
DropNotAllowed-Symbl but at the time i enter the RootEditpart of my
Editor the complete DragnDrop Operation is suspended and i dont know why.
And here is whats strange:
If i scroll my Editor in a way so that my Editpart is right on the Edge
of the Editor and i don't have to hover over the RootEditPart i can drop
- everything seems to work. If i return a Command that allows the Drop
on RootEditpart i can drop too, but thats not what i want.

Can anyone please help me with this? I tried to debug but i could not
find out what is going wrong with my RootEditPart.
Re: RootEditPart 'eats' DragnDrop-Operation [message #209902 is a reply to message #209320] Wed, 29 October 2008 15:15 Go to previous message
Eclipse UserFriend
Originally posted by: uwe.suedbeck.koeln.de

This is solved now. I did not see the ClassCastException that suspended
the DropOperation.

Uwe S├╝dbeck wrote:
> Hello everybody,
>
> In my perspective there is one editor and two views. A Tree and a Grid.
> The Drag&Drop from the Tree uses LocalSelectionTransfer. The Grid uses
> TextTransfer. I have registered DropTargetListeners for both
> TransferTypes on my EditorDiagram.
> On my RootEditpart i have registered a DragnDropRole that returns an
> UnexecutableComand to prohibit DragnDrop on the Root. My EditParts have
> DragnDrop Roles that return Commands where at this point i only do some
> Debugs and try to determine whats going on.
>
> Drag&Drop from Tree works fine, i can not Drop on Root but on my
> Editparts as i wanted, but from the Grid i encounter some strange
> behavior: When i start dragging from the Grid i can see the
> DropNotAllowed-Symbl but at the time i enter the RootEditpart of my
> Editor the complete DragnDrop Operation is suspended and i dont know why.
> And here is whats strange:
> If i scroll my Editor in a way so that my Editpart is right on the Edge
> of the Editor and i don't have to hover over the RootEditPart i can drop
> - everything seems to work. If i return a Command that allows the Drop
> on RootEditpart i can drop too, but thats not what i want.
>
> Can anyone please help me with this? I tried to debug but i could not
> find out what is going wrong with my RootEditPart.
Previous Topic:Removing a connection between two nodes
Next Topic:Mapping in XML Schema.
Goto Forum:
  


Current Time: Wed Jan 27 17:33:36 GMT 2021

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

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

Back to the top