* @param info the generic info.
*/
private void updateSharedLocalOrRemotePanel(RootPaneContainer localOrRemote,
ControlPanelInfo info)
{
LocalOrRemotePanel panel =
getLocalOrRemotePanel(localOrRemote.getContentPane());
LocalOrRemotePanel panelToUpdate = getLocalOrRemotePanel(
ControlCenterMainPane.getLocalOrRemoteDialog(info));
if (panel != null && panelToUpdate != null)
{
panelToUpdate.setRemote(panel.isRemote());
if (panel.getHostName() != null)
{
panelToUpdate.setHostName(panel.getHostName());
}
if (panel.getPort() != -1)
{
panelToUpdate.setPort(panel.getPort());
}
if (panel.getBindDN() != null)
{
panelToUpdate.setBindDN(panel.getBindDN());
}
}
}