// Checking if we already have a connection
if ( connection == null )
{
// Requesting the user to select a connection
SelectBrowserConnectionDialog dialog = new SelectBrowserConnectionDialog( editor.getSite().getShell(),
Messages.getString( "ExecuteLdifAction.SelectConnection" ), null ); //$NON-NLS-1$
if ( dialog.open() == SelectBrowserConnectionDialog.OK )
{
connection = dialog.getSelectedBrowserConnection();
if ( connection != null )
{
editor.setConnection( connection, true );
}