How to get a link previous state when relink?

I have a problem when i catch the relink event.



When i catch the LINK_RELINKED event,i need to update the JGoLink state from previous destnation JGoObject to now.But i can’t find any methods to mantain the link state before relink.



How to get it?



Thank you .

The easiest method is to override JGoView.reLink.

Alternatively you could implement a JGoDocumentListener to look for the JGoDocumentEvent.CHANGED with the getFlags() == JGoLink.ChangedToPort or == JGoLink.ChangedFromPort.

Thanx.



I read the "cancel relink " and then override the startRelink() to save state.I get it.



Thanx again.