Examples of open()


Examples of org.apache.directory.studio.apacheds.configuration.editor.v157.dialogs.ExtendedOperationDialog.open()

        addButton.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                ExtendedOperationDialog dialog = new ExtendedOperationDialog( extendedOperations );
                if ( Dialog.OK == dialog.open() )
                {
                    ExtendedOperationEnum newExtendedOperation = dialog.getExtendedOperation();
                    extendedOperations.add( newExtendedOperation );
                    viewer.refresh();
                    viewer.setSelection( new StructuredSelection( newExtendedOperation ) );
View Full Code Here

Examples of org.apache.directory.studio.apacheds.configuration.editor.v157.dialogs.IndexedAttributeDialog.open()

        if ( !selection.isEmpty() )
        {
            IndexedAttribute indexedAttribute = ( IndexedAttribute ) selection.getFirstElement();

            IndexedAttributeDialog dialog = new IndexedAttributeDialog( indexedAttribute );
            if ( Dialog.OK == dialog.open() && dialog.isDirty() )
            {
                indexedAttributesTableViewer.refresh();
                masterDetailsBlock.setEditorDirty();
                dirty = true;
            }
View Full Code Here

Examples of org.apache.directory.studio.apacheds.configuration.editor.v157.dialogs.InterceptorDialog.open()

        addButton.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                InterceptorDialog dialog = new InterceptorDialog( interceptors );
                if ( Dialog.OK == dialog.open() )
                {
                    InterceptorEnum newInterceptor = dialog.getInterceptor();
                    interceptors.add( newInterceptor );
                    viewer.refresh();
                    viewer.setSelection( new StructuredSelection( newInterceptor ) );
View Full Code Here

Examples of org.apache.directory.studio.apacheds.configuration.editor.v157.dialogs.NtlmProviderDialog.open()

            if ( SupportedMechanismEnum.NTLM.equals( selected ) || SupportedMechanismEnum.GSS_SPNEGO.equals( selected ) )
            {
                String oldNtlmProvider = selected.getNtlmProviderFqcn();

                NtlmProviderDialog dialog = new NtlmProviderDialog( oldNtlmProvider );
                if ( Dialog.OK == dialog.open() && dialog.isDirty() )
                {
                    selected.setNtlmProviderFqcn( dialog.getNtlmProvider() );
                    supportedMechanismsTableViewer.refresh();
                    setEditorDirty();
                }
View Full Code Here

Examples of org.apache.directory.studio.apacheds.configuration.editor.v157.dialogs.SaslRealmDialog.open()

        addSaslRealmButton.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                SaslRealmDialog dialog = new SaslRealmDialog( "" ); //$NON-NLS-1$
                if ( Dialog.OK == dialog.open() && dialog.isDirty() )
                {
                    String newSaslRealm = dialog.getSaslRealm();
                    if ( newSaslRealm != null && !"".equals( newSaslRealm ) && !saslRealms.contains( newSaslRealm ) ) //$NON-NLS-1$
                    {
                        saslRealms.add( newSaslRealm );
View Full Code Here

Examples of org.apache.directory.studio.apacheds.configuration.v2.dialogs.AttributeDialog.open()

     */
    private void addNewAttribute()
    {
        AttributeDialog dialog = new AttributeDialog( addAttributeButton.getShell(), null, getAttributeNamesAndOids() );

        if ( AttributeDialog.OK == dialog.open() )
        {
            String newAttribute = dialog.getAttribute();

            if ( !attributesList.contains( newAttribute ) )
            {
View Full Code Here

Examples of org.apache.directory.studio.apacheds.configuration.v2.dialogs.AttributeValueDialog.open()

            String oldId = attributeValueObject.getAttribute();
            String oldValue = attributeValueObject.getValue();

            AttributeValueDialog dialog = new AttributeValueDialog( attributeValueObject );
            if ( AttributeValueDialog.OK == dialog.open() && dialog.isDirty() )
            {
                Attribute attribute = contextEntry.get( oldId );
                if ( attribute != null )
                {
                    attribute.remove( oldValue );
View Full Code Here

Examples of org.apache.directory.studio.apacheds.configuration.v2.dialogs.IndexDialog.open()

        if ( !selection.isEmpty() )
        {
            JdbmIndexBean<String, Entry> index = ( JdbmIndexBean<String, Entry> ) selection.getFirstElement();

            IndexDialog dialog = new IndexDialog( index );
            if ( IndexDialog.OK == dialog.open() && dialog.isDirty() )
            {
                indexesTableViewer.refresh();
                masterDetailsBlock.setEditorDirty();
            }
        }
View Full Code Here

Examples of org.apache.directory.studio.apacheds.dialogs.DeleteServerDialog.open()

            // Here's the real object
            Server server = ( Server ) selection.getFirstElement();

            // Asking for confirmation
            DeleteServerDialog dsd = new DeleteServerDialog( view.getSite().getShell(), server );
            if ( dsd.open() == DeleteServerDialog.OK )
            {
                // Checking if the server is running
                // If yes, we need to shut it down before removing its data
                if ( server.getState() == ServerStateEnum.STARTED )
                {
View Full Code Here

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

        {
            public void run()
            {
                CertificateTrustDialog dialog = new CertificateTrustDialog( PlatformUI.getWorkbench().getDisplay()
                    .getActiveShell(), host, certChain, failCauses );
                dialog.open();
                trustLevel[0] = dialog.getTrustLevel();
            }
        } );

        return trustLevel[0];
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.