final DN[] parentDns = new DN[]
{ this.dnBuilderWidget.getParentDn() };
final DN dn = new DN( rdns[0], parentDns[0] );
// check if parent exists or new entry already exists
ReadEntryJob readEntryJob1 = new ReadEntryJob( wizard.getSelectedConnection(), parentDns[0] );
RunnableContextJobAdapter.execute( readEntryJob1, getContainer(), false );
IEntry parentEntry = readEntryJob1.getReadEntry();
if ( parentEntry == null )
{
getShell().getDisplay().syncExec( new Runnable()
{
public void run()
{
MessageDialog.openError( getShell(), "Error", "Parent " + dnBuilderWidget.getParentDn().toString()
+ " doesn't exists" );
}
} );
return null;
}
ReadEntryJob readEntryJob2 = new ReadEntryJob( wizard.getSelectedConnection(), dn );
RunnableContextJobAdapter.execute( readEntryJob2, getContainer(), false );
IEntry entry = readEntryJob2.getReadEntry();
if ( entry != null )
{
getShell().getDisplay().syncExec( new Runnable()
{
public void run()