Examples of open()


Examples of org.apache.directory.ldapstudio.browser.common.dialogs.MoveEntriesDialog.open()

     *      the entries to move
     */
    protected void moveEntries( final IEntry[] entries )
    {
        MoveEntriesDialog moveDialog = new MoveEntriesDialog( getShell(), entries );
        if ( moveDialog.open() == Dialog.OK )
        {
            DN newParentDn = moveDialog.getParentDn();
            if ( newParentDn != null /* && !newRdn.equals(entry.getRdn()) */)
            {
                IEntry newParentEntry = entries[0].getConnection().getEntryFromCache( newParentDn );
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.common.dialogs.MultivaluedDialog.open()

        {
            AttributeHierarchy ah = ( AttributeHierarchy ) this.getValue();
            if ( ah != null )
            {
                MultivaluedDialog dialog = new MultivaluedDialog( this.parent.getShell(), ah );
                dialog.open();
            }
        }

        fireCancelEditor();
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.common.dialogs.RenameEntryDialog.open()

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

Examples of org.apache.directory.ldapstudio.browser.common.dialogs.ScopeDialog.open()

        }
        if ( askForScope )
        {
            ScopeDialog scopeDialog = new ScopeDialog( Display.getDefault().getActiveShell(), "Select Copy Depth",
                entriesToPaste.length > 1 );
            scopeDialog.open();
            scope = scopeDialog.getScope();
        }

        new CopyEntriesJob( parent, entriesToPaste, scope ).execute();
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.common.dialogs.SelectConnectionDialog.open()

        {
            public void widgetSelected( SelectionEvent e )
            {
                SelectConnectionDialog dialog = new SelectConnectionDialog( PlatformUI.getWorkbench()
                    .getActiveWorkbenchWindow().getShell(), "Select Connection", null );
                dialog.open();
                IConnection connection = dialog.getSelectedConnection();
                setConnection( connection );
                validate();
            }
        } );
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.common.dialogs.SelectEntryDialog.open()

                    }


                    // open dialog
                    SelectEntryDialog dialog = new SelectEntryDialog( parent.getShell(), "Select DN", rootEntry, entry );
                    dialog.open();
                    IEntry selectedEntry = dialog.getSelectedEntry();

                    // get selected DN
                    if ( selectedEntry != null )
                    {
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.common.dialogs.SelectReferralConnectionDialog.open()

        {
            public void run()
            {
                SelectReferralConnectionDialog dialog = new SelectReferralConnectionDialog( PlatformUI.getWorkbench()
                    .getDisplay().getActiveShell(), referralUrl );
                if ( dialog.open() == SelectReferralConnectionDialog.OK )
                {
                    IConnection connection = dialog.getReferralConnection();
                    referralUrlToReferralConnectionCache.put( referralUrl, connection );
                    referralConnection[0] = connection;
                }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.common.dialogs.TextDialog.open()

    {
        Object value = getValue();
        if ( value != null && value instanceof String )
        {
            TextDialog dialog = new TextDialog( shell, ( String ) value );
            if ( dialog.open() == TextDialog.OK && !"".equals( dialog.getText() ) )
            {
                setValue( dialog.getText() );
                return true;
            }
        }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.model.IConnection.open()

                // monitor.reportError("Connection is closed");

                EventRegistry.suspendEventFireingInCurrentThread();
                try
                {
                    connection.open( monitor );
                }
                finally
                {
                    EventRegistry.resumeEventFireingInCurrentThread();
                }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.dialogs.AddressDialog.open()

    {
        Object value = getValue();
        if ( value != null && value instanceof String )
        {
            AddressDialog dialog = new AddressDialog( shell, ( String ) value );
            if ( dialog.open() == TextDialog.OK && !"".equals( dialog.getText() ) )
            {
                setValue( dialog.getText() );
                return true;
            }
        }
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.