Examples of open()


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

        Object value = getValue();
        if ( value != null && value instanceof ObjectClassValueEditorRawValueWrapper )
        {
            ObjectClassValueEditorRawValueWrapper wrapper = ( ObjectClassValueEditorRawValueWrapper ) value;
            ObjectClassDialog dialog = new ObjectClassDialog( shell, wrapper.schema, wrapper.objectClass );
            if ( dialog.open() == TextDialog.OK && !"".equals( dialog.getObjectClass() ) )
            {
                setValue( dialog.getObjectClass() );
                return true;
            }
        }
View Full Code Here

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

            PasswordValueEditorRawValueWrapper wrapper = ( PasswordValueEditorRawValueWrapper ) value;
            if ( wrapper.password != null && wrapper.password instanceof byte[] )
            {
                byte[] pw = ( byte[] ) wrapper.password;
                PasswordDialog dialog = new PasswordDialog( shell, pw, wrapper.entry );
                if ( dialog.open() == TextDialog.OK )
                {
                    setValue( dialog.getNewPassword() );
                    return true;
                }
            }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.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.ui.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.ui.dialogs.SelectConnectionDialog.open()

            public void widgetSelected( SelectionEvent e )
            {
                // if(selectedConnection != null) {
                SelectConnectionDialog dialog = new SelectConnectionDialog( parent.getShell(), "Select Connection",
                    selectedConnection );
                dialog.open();
                IConnection connection = dialog.getSelectedConnection();
                if ( connection != null )
                {
                    setConnection( connection );
                    notifyListeners();
View Full Code Here

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

                    if ( entry != null )
                    {
                        SelectEntryDialog dialog = new SelectEntryDialog( parent.getShell(), "Select DN", connection,
                            entry );
                        dialog.open();
                        IEntry selectedEntry = dialog.getSelectedEntry();
                        if ( selectedEntry != null )
                        {
                            dn = selectedEntry.getDn();
                            dnChanged();
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.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.ui.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.ldifeditor.dialogs.LdifEntryEditorDialog.open()

                dialog = new LdifEntryEditorDialog( editor.getEditorSite().getShell(), editor.getConnection(),
                    ( LdifChangeAddRecord ) container );
            }

            editor.deactivateGlobalActionHandlers();
            if ( dialog.open() == LdifEntryEditorDialog.OK )
            {
                LdifRecord record = dialog.getLdifRecord();

                IDocument document = editor.getDocumentProvider().getDocument( editor.getEditorInput() );
                String old = document.get();
View Full Code Here

Examples of org.apache.directory.ldapstudio.schemas.view.views.SchemaElementsViewSortDialog.open()

     */
    public void run()
    {
        SchemaElementsViewSortDialog hvsd = new SchemaElementsViewSortDialog( PlatformUI.getWorkbench().getDisplay()
            .getActiveShell() );
        hvsd.open();
    }
}
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.