|
|
Re: Delete Connection of a Node Programmatically [message #1014460 is a reply to message #1007104] |
Mon, 25 February 2013 21:45 |
Thomas Beyer Messages: 55 Registered: February 2013 |
Member |
|
|
Hi Daniel,
Check the generated policies package.
There should be a class named StateTransitionContinuousSemanticEditPolicy (just a guess based on the code above).
There you will find
/**
* @generated
*/
protected Command getDestroyElementCommand(DestroyElementRequest req) {
return getGEFWrapper(new DestroyElementCommand(req));
}
You could override this method by traversing to connection (2) via Node (B) and chain another Command with the corresponding DestroyElementRequest for connection (2) to the Command provided by this method.
This way, you would delete connection (1) and (2), but preserve the nodes.
Regards Thomas
[Updated on: Mon, 25 February 2013 21:45] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03230 seconds