RootEditPart 'eats' DragnDrop-Operation [message #209320] |
Thu, 23 October 2008 12:56 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02403 seconds