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

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


            }
            catch ( InvalidNameException e )
            {
                dn = null;
            }
            DnDialog dialog = new DnDialog( shell,
                Messages.getString( "DnValueEditor.DNEditor" ), null, wrapper.connection, dn ); //$NON-NLS-1$
            if ( dialog.open() == TextDialog.OK && dialog.getDn() != null )
            {
                setValue( dialog.getDn().getUpName() );
                return true;
            }
        }
        return false;
    }
View Full Code Here


        {
            IBrowserConnection conn = ( IBrowserConnection ) getInput();

            LdapDN dn = Utils.getLdapDn( getStringFromClipboard() );

            DnDialog dialog = new DnDialog(
                getShell(),
                Messages.getString( "GotoDnAction.GotoDNAction" ), Messages.getString( "GotoDnAction.EnterDNAction" ), conn, dn ); //$NON-NLS-1$ //$NON-NLS-2$
            if ( dialog.open() == TextDialog.OK && dialog.getDn() != null )
            {
                dn = dialog.getDn();
                return new ConnectionAndDn( conn, dn );
            }
        }

        return null;
View Full Code Here

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

        {
            IBrowserConnection conn = ( IBrowserConnection ) getInput();

            Dn dn = Utils.getLdapDn( getStringFromClipboard() );

            DnDialog dialog = new DnDialog(
                getShell(),
                Messages.getString( "GotoDnAction.GotoDNAction" ), Messages.getString( "GotoDnAction.EnterDNAction" ), conn, dn ); //$NON-NLS-1$ //$NON-NLS-2$
            if ( dialog.open() == TextDialog.OK && dialog.getDn() != null )
            {
                dn = dialog.getDn();
                return new ConnectionAndDn( conn, dn );
            }
        }

        return null;
View Full Code Here

            }
            catch ( LdapInvalidDnException e )
            {
                dn = null;
            }
            DnDialog dialog = new DnDialog( shell,
                Messages.getString( "DnValueEditor.DNEditor" ), null, wrapper.connection, dn ); //$NON-NLS-1$
            if ( dialog.open() == TextDialog.OK && dialog.getDn() != null )
            {
                setValue( dialog.getDn().getName() );
                return true;
            }
        }
        return false;
    }
View Full Code Here

        {
            IBrowserConnection conn = ( IBrowserConnection ) getInput();

            LdapDN dn = Utils.getLdapDn( getStringFromClipboard() );

            DnDialog dialog = new DnDialog( getShell(), "Go to DN", "Please enter the DN you want to go to.", conn, dn );
            if ( dialog.open() == TextDialog.OK && dialog.getDn() != null )
            {
                dn = dialog.getDn();
                return new ConnectionAndDn( conn, dn );
            }
        }

        return null;
View Full Code Here

            }
            catch ( InvalidNameException e )
            {
                dn = null;
            }
            DnDialog dialog = new DnDialog( shell, "DN Editor", null, wrapper.connection, dn );
            if ( dialog.open() == TextDialog.OK && dialog.getDn() != null )
            {
                setValue( dialog.getDn().toString() );
                return true;
            }
        }
        return false;
    }
View Full Code Here

TOP

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

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.