Examples of open()


Examples of org.apache.directory.studio.connection.ui.dialogs.ConnectionFolderDialog.open()

    public void run()
    {
        ConnectionFolderDialog dialog = new ConnectionFolderDialog(
            PlatformUI.getWorkbench().getDisplay().getActiveShell(),
            Messages.getString( "NewConnectionFolderAction.NewConnectionFolder" ), Messages.getString( "NewConnectionFolderAction.NeterNameNewFolder" ), "", null ); //$NON-NLS-1$ //$NON-NLS-2$//$NON-NLS-3$
        if ( dialog.open() == CredentialsDialog.OK )
        {
            String name = dialog.getValue();
            ConnectionFolder folder = new ConnectionFolder( name );
            ConnectionCorePlugin.getDefault().getConnectionFolderManager().addConnectionFolder( folder );
View Full Code Here

Examples of org.apache.directory.studio.connection.ui.dialogs.CredentialsDialog.open()

                        PlatformUI.getWorkbench().getDisplay().getActiveShell(),
                        NLS
                            .bind(
                                Messages.getString( "UIAuthHandler.EnterPasswordFor" ), new String[] { connectionParameter.getName() } ), //$NON-NLS-1$
                        Messages.getString( "UIAuthHandler.PleaseEnterPasswordOfUser" ) + connectionParameter.getBindPrincipal() + ":", "", null ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
                    if ( dialog.open() == CredentialsDialog.OK )
                    {
                        pw[0] = dialog.getValue();
                    }
                    else
                    {
View Full Code Here

Examples of org.apache.directory.studio.connection.ui.dialogs.PasswordDialog.open()

                    NLS.bind(
                        Messages.getString( "UIAuthHandler.EnterPasswordFor" ), new String[] { connectionParameter.getName() } ), //$NON-NLS-1$
                    NLS.bind(
                        Messages.getString( "UIAuthHandler.PleaseEnterPasswordOfUser" ), connectionParameter.getBindPrincipal() ), "" ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$

                if ( dialog.open() == PasswordDialog.OK )
                {
                    password[0] = dialog.getPassword();
                }
            }
        } );
View Full Code Here

Examples of org.apache.directory.studio.connection.ui.dialogs.ResetPasswordDialog.open()

        {
            // We ask the user to reset his master password
            ResetPasswordDialog resetPasswordDialog = new ResetPasswordDialog( changeMasterPasswordButton.getShell(),
                "", null, null ); //$NON-NLS-1$

            if ( resetPasswordDialog.open() != ResetPasswordDialog.OK )
            {
                // The user cancelled the action
                return;
            }
View Full Code Here

Examples of org.apache.directory.studio.connection.ui.dialogs.SelectReferralConnectionDialog.open()

        {
            public void run()
            {
                SelectReferralConnectionDialog dialog = new SelectReferralConnectionDialog( PlatformUI.getWorkbench()
                    .getDisplay().getActiveShell(), referralUrls );
                if ( dialog.open() == SelectReferralConnectionDialog.OK )
                {
                    Connection connection = dialog.getReferralConnection();
                    referralConnections[0] = connection;
                }
            }
View Full Code Here

Examples of org.apache.directory.studio.connection.ui.dialogs.SetupPasswordDialog.open()

            enableKeystoreCheckbox.getShell(),
            Messages.getString( "PasswordsKeystorePreferencePage.SetupMasterPassword" ), //$NON-NLS-1$
            Messages.getString( "PasswordsKeystorePreferencePage.PleaseEnterMasterPasswordToSecurePasswordsKeystore" ), //$NON-NLS-1$
            null );

        if ( setupPasswordDialog.open() == SetupPasswordDialog.OK )
        {
            // Getting the master password
            String masterPassword = setupPasswordDialog.getPassword();

            // Loading the keystore
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.DeleteDialog.open()

                    appendValuesWarnMessage( message, values );
                }
            }

            DeleteDialog dialog = new DeleteDialog( getShell(), getText(), message.toString(), askForTreeDeleteControl );
            if ( message.length() == 0 || dialog.open() == DeleteDialog.OK )
            {
                if ( entries.size() > 0 )
                {
                    deleteEntries( entries, dialog.isUseTreeDeleteControl() );
                }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.DnDialog.open()

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

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.FilterDialog.open()

                if ( browserConnection != null )
                {
                    FilterDialog dialog = new FilterDialog( parent.getShell(), Messages
                        .getString( "FilterWidget.FilterEditor" ), filterCombo.getText(), //$NON-NLS-1$
                        browserConnection );
                    dialog.open();
                    String filter = dialog.getFilter();
                    if ( filter != null )
                    {
                        filterCombo.setText( filter );
                    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.common.dialogs.FilterWidgetDialog.open()

        {
            IEntry entry = getSelectedEntries()[0];
            FilterWidgetDialog dialog = new FilterWidgetDialog( getShell(), Messages
                .getString( "FilterChildrenAction.FilterChildren" ), //$NON-NLS-1$
                entry.getChildrenFilter(), entry.getBrowserConnection() );
            if ( dialog.open() == Dialog.OK )
            {
                String newFilter = dialog.getFilter();

                if ( newFilter == null || "".equals( newFilter.trim() ) ) //$NON-NLS-1$
                {
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.