// Getting the DN from the clipboard (if any)
Dn dn = Utils.getLdapDn( getStringFromClipboard() );
// Displaying the DN dialog
DnDialog dialog = new DnDialog(
getShell(),
Messages.getString( "GotoDnAction.GotoDNAction" ), Messages.getString( "GotoDnAction.EnterDNAction" ), connection, dn ); //$NON-NLS-1$ //$NON-NLS-2$
if ( dialog.open() == TextDialog.OK && dialog.getDn() != null )
{
dn = dialog.getDn();
return new ConnectionAndDn( connection, dn );
}
}
return null;