Set attributes when a link is deleted [message #217357] |
Thu, 05 February 2009 12:12 |
Jose Salazar Messages: 34 Registered: July 2009 |
Member |
|
|
Hello,
I want to change some attributes of the nodes when I delete the link that
binds them. Searching in this group I found a possible solution, I adapted
to my case but nothing happens and no error is showed.
In my XXXItemSemanticEditPolicy:
protected Command getDestroyElementCommand(DestroyElementRequest req) {
CompoundCommand cc = new CompoundCommand();
cc.add((new ICommandProxy(new
RelationFeatureSetFather(getEditingDomain(), req))));
cc.add(getGEFWrapper(new DestroyElementCommand(req)));
return cc.unwrap();
}
RelationFeatureSetFather extends AbstractTransactionalCommand and within
doExecuteWithResult I do a SetCommand.create(xx, xx, xx, xx, xx).execute
but nothing happens.
Where is the mistake?
PD. I pass the request to the AbstractTransactionalCommand because I don't
know how to get access to the EditPart modified and I've seen many
examples where only pass the EditingDomain. How do I get access?
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.03028 seconds