Package org.apache.directory.studio.ldapbrowser.common.dialogs

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.RenameEntryDialog


     * @param entry
     *      the Entry to rename
     */
    protected void renameEntry( final IEntry entry )
    {
        RenameEntryDialog renameDialog = new RenameEntryDialog( getShell(), entry );
        if ( renameDialog.open() == Dialog.OK )
        {
            Rdn newRdn = renameDialog.getRdn();
            if ( newRdn != null && !newRdn.equals( entry.getRdn() ) )
            {
                new RenameEntryJob( entry, newRdn, new SimulateRenameDialogImpl( getShell() ) ).execute();
            }
        }
View Full Code Here


        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 RenameEntryJob( originalEntry, newRdn, new SimulateRenameDialogImpl( parent.getShell() ) )
                            .execute();
View Full Code Here

        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();
View Full Code Here

     * @param entry
     *      the Entry to rename
     */
    protected void renameEntry( final IEntry entry )
    {
        RenameEntryDialog renameDialog = new RenameEntryDialog( getShell(), entry );
        if ( renameDialog.open() == Dialog.OK )
        {
            RDN newRdn = renameDialog.getRdn();
            boolean deleteOldRdn = renameDialog.isDeleteOldRdn();
            if ( newRdn != null && !newRdn.equals( entry.getRdn() ) )
            {
                new RenameEntryJob( entry, newRdn, deleteOldRdn ).execute();
            }
        }
View Full Code Here

     * @param entry
     *      the Entry to rename
     */
    protected void renameEntry( final IEntry entry )
    {
        RenameEntryDialog renameDialog = new RenameEntryDialog( getShell(), entry );
        if ( renameDialog.open() == Dialog.OK )
        {
            Rdn newRdn = renameDialog.getRdn();
            if ( newRdn != null && !newRdn.equals( entry.getRdn() ) )
            {
                new StudioBrowserJob(
                    new RenameEntryRunnable( entry, newRdn, new SimulateRenameDialogImpl( getShell() ) ) ).execute();
            }
View Full Code Here

     * @param entry
     *      the Entry to rename
     */
    protected void renameEntry( final IEntry entry )
    {
        RenameEntryDialog renameDialog = new RenameEntryDialog( getShell(), entry );
        if ( renameDialog.open() == Dialog.OK )
        {
            Rdn newRdn = renameDialog.getRdn();
            if ( newRdn != null && !newRdn.equals( entry.getRdn() ) )
            {
                new RenameEntryJob( entry, newRdn, new SimulateRenameDialogImpl( getShell() ) ).execute();
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.ldapbrowser.common.dialogs.RenameEntryDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.