| Who frames UnexecutableCommand in flow example [message #106705] | 
Mon, 24 November 2003 23:19   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 10:43   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 
> 
>
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.14563 seconds