Package org.apache.directory.studio.apacheds.configuration.model.v154

Examples of org.apache.directory.studio.apacheds.configuration.model.v154.SupportedMechanismEnum


            public void selectionChanged( SelectionChangedEvent event )
            {
                StructuredSelection selection = ( StructuredSelection ) supportedMechanismsTableViewer.getSelection();
                if ( !selection.isEmpty() )
                {
                    SupportedMechanismEnum selected = ( SupportedMechanismEnum ) selection.getFirstElement();
                    editSupportedMechanismButton
                        .setEnabled( ( SupportedMechanismEnum.NTLM.equals( selected ) || SupportedMechanismEnum.GSS_SPNEGO
                            .equals( selected ) ) );
                }
                else
View Full Code Here


    private void editSelectedSupportedMechanism()
    {
        StructuredSelection selection = ( StructuredSelection ) supportedMechanismsTableViewer.getSelection();
        if ( !selection.isEmpty() )
        {
            SupportedMechanismEnum selected = ( SupportedMechanismEnum ) selection.getFirstElement();

            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

            public void selectionChanged( SelectionChangedEvent event )
            {
                StructuredSelection selection = ( StructuredSelection ) supportedMechanismsTableViewer.getSelection();
                if ( !selection.isEmpty() )
                {
                    SupportedMechanismEnum selected = ( SupportedMechanismEnum ) selection.getFirstElement();
                    editSupportedMechanismButton
                        .setEnabled( ( SupportedMechanismEnum.NTLM.equals( selected ) || SupportedMechanismEnum.GSS_SPNEGO
                            .equals( selected ) ) );
                }
                else
View Full Code Here

    private void editSelectedSupportedMechanism()
    {
        StructuredSelection selection = ( StructuredSelection ) supportedMechanismsTableViewer.getSelection();
        if ( !selection.isEmpty() )
        {
            SupportedMechanismEnum selected = ( SupportedMechanismEnum ) selection.getFirstElement();

            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

            public void selectionChanged( SelectionChangedEvent event )
            {
                StructuredSelection selection = ( StructuredSelection ) supportedMechanismsTableViewer.getSelection();
                if ( !selection.isEmpty() )
                {
                    SupportedMechanismEnum selected = ( SupportedMechanismEnum ) selection.getFirstElement();
                    editSupportedMechanismButton
                        .setEnabled( ( SupportedMechanismEnum.NTLM.equals( selected ) || SupportedMechanismEnum.GSS_SPNEGO
                            .equals( selected ) ) );
                }
                else
View Full Code Here

    private void editSelectedSupportedMechanism()
    {
        StructuredSelection selection = ( StructuredSelection ) supportedMechanismsTableViewer.getSelection();
        if ( !selection.isEmpty() )
        {
            SupportedMechanismEnum selected = ( SupportedMechanismEnum ) selection.getFirstElement();

            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

            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 ) );
                    setEditorDirty();
                }
            }
        } );

        deleteButton.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                StructuredSelection selection = ( StructuredSelection ) viewer.getSelection();
                if ( !selection.isEmpty() )
                {
                    ExtendedOperationEnum extendedOperation = ( ExtendedOperationEnum ) selection.getFirstElement();

                    extendedOperations.remove( extendedOperation );
                    viewer.refresh();
                    setEditorDirty();
                }
View Full Code Here

            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 ) );
                    setEditorDirty();
                }
            }
        } );

        deleteButton.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                StructuredSelection selection = ( StructuredSelection ) viewer.getSelection();
                if ( !selection.isEmpty() )
                {
                    ExtendedOperationEnum extendedOperation = ( ExtendedOperationEnum ) selection.getFirstElement();

                    extendedOperations.remove( extendedOperation );
                    viewer.refresh();
                    setEditorDirty();
                }
View Full Code Here

            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 ) );
                    setEditorDirty();
                }
            }
        } );

        deleteButton.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                StructuredSelection selection = ( StructuredSelection ) viewer.getSelection();
                if ( !selection.isEmpty() )
                {
                    ExtendedOperationEnum extendedOperation = ( ExtendedOperationEnum ) selection.getFirstElement();

                    extendedOperations.remove( extendedOperation );
                    viewer.refresh();
                    setEditorDirty();
                }
View Full Code Here

    private void editSelectedIndexedAttribute()
    {
        StructuredSelection selection = ( StructuredSelection ) indexedAttributesTableViewer.getSelection();
        if ( !selection.isEmpty() )
        {
            IndexedAttribute indexedAttribute = ( IndexedAttribute ) selection.getFirstElement();

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

TOP

Related Classes of org.apache.directory.studio.apacheds.configuration.model.v154.SupportedMechanismEnum

Copyright © 2018 www.massapicom. 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.