Alias selectedAlias = Activator.getDefault().getConnectionsView().getSelectedAlias();
Activator.getDefault().getAliasManager().removeAlias( selectedAlias );
}
Activator.getDefault().getAliasManager().addAlias( alias );
ConnectionsView connectionsView = Activator.getDefault().getConnectionsView();
if ( autoConnectButton.getSelection() )
{
connectionsView.startOrStopConnection( alias );
}
close();
}
catch ( Exception e )
{