Deleting Node and Keeping the Links


#1

Hi,
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.
Suggestions?
Thx


#2

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.


#3

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