ReconnectionContext [message #972374] |
Mon, 05 November 2012 15:25 |
Surya Kathayat Messages: 44 Registered: July 2012 |
Member |
|
|
Hi,
I am trying to reconnect a source of a Link programatically.
Fourth paramater in the ReconncetionContext constructor is "targetLocation". What does that represents?
Can "targetLocation" be determined from newAnchor, is yes how?
Otherwise how "ILocation" can be created/instiated?
Regards
Surya
ReconnectionContext reConContext = new ReconnectionContext(conn, oldAnchor, newAnchor, [b]??targetLocation??[/b]);
reConContext.setReconnectType(ReconnectionContext.RECONNECT_SOURCE);
IReconnectionFeature reConFeature = getFeatureProvider().getReconnectionFeature(reConContext);
if(reConFeature.canReconnect(reConContext)){
reConFeature.reconnect(reConContext);
oldSource.getOutgoingLinks().remove(link);
newSource.getOutgoingLinks().add(link);
}
[Updated on: Mon, 05 November 2012 15:26] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04706 seconds