|Re: Link to node connection deletion [message #216603 is a reply to message #216595]
||Wed, 28 January 2009 17:12
| Guillaume Gauffre
Registered: July 2009
I tried with another trick :|
In that case, everything is deleted from the emf model, but the notation
elements remain visible until I reload the diagram.
Guillaume a écrit :
> NodeA ----------------------> NodeB
> The fact is that all elements are deleted from the emf model but link1
> remain visible in the diagram using the code I had to the
> semanticEditPolicy of the link1.
> I don't know how to use the NotationViewDependentsAdvice,
> I tried :
> CompoundCommand cmd = new CompoundCommand();
> cmd.add(getGEFWrapper(new DestroyElementCommand(req)));
> return cmd;
> but the link1 is not deleted, and is not deleted in the emf model too.
> Do you have an example for using this Class ?
> Alex Boyko a écrit :
>> As far as I understood the problem is that when you select and delete
>> link 1, you want link2 and NodeC to be deleted too, but only link1 and
>> link2 are deleted is that correct?
>> One place to look at would be NotationViewDependentsAdvice.
Powered by FUDForum
. Page generated in 0.02149 seconds