Examples of DnDialog


Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.DnDialog

    {
        Object value = getValue();
        if ( value != null && value instanceof DnValueEditorRawValueWrapper )
        {
            DnValueEditorRawValueWrapper wrapper = ( DnValueEditorRawValueWrapper ) value;
            DnDialog dialog = new DnDialog( shell, wrapper.connection, wrapper.dn );
            if ( dialog.open() == TextDialog.OK && dialog.getDn() != null )
            {
                setValue( dialog.getDn().toString() );
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.DnDialog

    {
        Object value = getValue();
        if ( value != null && value instanceof DnValueEditorRawValueWrapper )
        {
            DnValueEditorRawValueWrapper wrapper = ( DnValueEditorRawValueWrapper ) value;
            DnDialog dialog = new DnDialog( shell, wrapper.connection, wrapper.dn );
            if ( dialog.open() == TextDialog.OK && dialog.getDn() != null )
            {
                setValue( dialog.getDn().toString() );
                return true;
            }
        }
        return false;
    }
View Full Code Here

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

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

        {
            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

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

            // 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

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

        {
            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

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

            }
            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

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

        {
            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

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

            }
            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
Copyright © 2018 www.massapi.com. 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.