Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Who frames UnexecutableCommand in flow example
Who frames UnexecutableCommand in flow example [message #106705] Tue, 25 November 2003 04:19 Go to next message
Eclipse UserFriend
Originally posted by: vgusev.graphlogic.com

Hello,

While dragging an item picked from the canvas over a connection, I see that
CompoundCommand is created. This command contains two commands
OrphanChildCommand and UnexecutableCommand. The former is required to remove
an object being dragged from its parent. The latter prevents the whole
CompoundCommand to be executed.
1. I don't know who puts the UnexecutableCommand into CompoundCommand - is
it DragEditPartsTracker? Just curious.
2. I cannot replace UnexecutableCommand by AddCommand. I add
(COMPONENT_ROLE, MyXYLaoutPolicy) for the Connection's part, however its
createAddCommand is ignored, and CompoundCommand still contains
UnexecutableCommand.

Where do I go wrong?
Thanks.

Vladimir
Re: Who frames UnexecutableCommand in flow example [message #106800 is a reply to message #106705] Tue, 25 November 2003 15:43 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

see getCommand() in DragEditPartsTracker.
It looks like you don't have a target editpart.

DragEditPartsTracker is excluding the entire connection layer. This was
done to avoid connections from getting in the way of the real targets.
Override the methods which prevent htat layer from being targeted. Open a
bugzilla if you think this needs to be customizable in GEF.

"Vladimir" <vgusev@graphlogic.com> wrote in message
news:bpul3g$7r1$1@eclipse.org...
> Hello,
>
> While dragging an item picked from the canvas over a connection, I see
that
> CompoundCommand is created. This command contains two commands
> OrphanChildCommand and UnexecutableCommand. The former is required to
remove
> an object being dragged from its parent. The latter prevents the whole
> CompoundCommand to be executed.
> 1. I don't know who puts the UnexecutableCommand into CompoundCommand - is
> it DragEditPartsTracker? Just curious.
> 2. I cannot replace UnexecutableCommand by AddCommand. I add
> (COMPONENT_ROLE, MyXYLaoutPolicy) for the Connection's part, however its
> createAddCommand is ignored, and CompoundCommand still contains
> UnexecutableCommand.
>
> Where do I go wrong?
> Thanks.
>
> Vladimir
>
>
Previous Topic:export draw2d to SVG?
Next Topic:How to refresh the treelist of the TreeViewer ?
Goto Forum:
  


Current Time: Wed Jan 15 11:18:49 GMT 2025

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

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

Back to the top