Deleting Node and Keeping the Links


I would like being able to delete a node using cut(), deleteSelection() in a JGoView without deleting the links attached to the node. My first intent was to catch the event in JGoDocument and to relink the links to a dummy node (transparent node). I find this way a little tricky and I’m curious if I miss a nice feature/way to resolve this issue.


Interestingly, we have already implemented this feature for the next release. Alas, that won’t help you right now.
You can implement the same effect by overriding JGoPort.ownerChange to be a no-op. Normally JGoPort.ownerChange, if the newOwner is null, calls JGoLink.unlink on each of the links that are connected at that port.


Thanks. It works well.
It will be a nice feature.