Delete the target node when deleting a link [message #229216] |
Thu, 07 May 2009 14:59 |
Jose Salazar Messages: 34 Registered: July 2009 |
Member |
|
|
Hello,
When I delete a link, I would remove the target node. I tried to achieve
this goal in several ways, but unsatisfactorily. One performs the
following, modifying
XXXItemSemanticEditPolicy#getDestroyElementCommand(DestroyEl ementRequest)
DestroyElementRequest myDER = new
DestroyElementRequest(getEditingDomain(), relation.getTarget(), false);
IElementType context =
ElementTypeRegistry.getInstance().getElementType(myDER.getEd itHelperContext());
ICommand command = context.getEditCommand(myDER);
cc.add(new ICommandProxy(command));
But "command" is always null.
Deleting the node with a RemoveCommand doesn't work either.
How could I implement this behavior?
The idea is that this will be deleted spreading, ie, deleting a node,
their links are deleted, they deleted their target nodes ...
Thanks in advance.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02731 seconds