if ( getValue() != null && getValue() instanceof IEntry )
{
IEntry entry = ( IEntry ) getValue();
if ( entry != null )
{
RenameEntryDialog renameDialog = new RenameEntryDialog( parent.getShell(), entry );
if ( renameDialog.open() == Dialog.OK )
{
Rdn newRdn = renameDialog.getRdn();
if ( newRdn != null && !newRdn.equals( entry.getRdn() ) )
{
IEntry originalEntry = entry.getBrowserConnection().getEntryFromCache( entry.getDn() );
new StudioBrowserJob( new RenameEntryRunnable( originalEntry, newRdn,
new SimulateRenameDialogImpl( parent.getShell() ) ) ).execute();