setEditorDirty();
}
};
// Supported Authentication Mechanisms
supportedMechanismsTableViewer.addSelectionChangedListener( new ISelectionChangedListener()
{
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
{
editSupportedMechanismButton.setEnabled( false );
}
}
} );
supportedMechanismsTableViewer.addDoubleClickListener( new IDoubleClickListener()
{
public void doubleClick( DoubleClickEvent event )
{
editSelectedSupportedMechanism();
}
} );
editSupportedMechanismButton.addSelectionListener( new SelectionAdapter()
{
public void widgetSelected( SelectionEvent e )
{
editSelectedSupportedMechanism();
}
} );
selectAllSupportedMechanismsButton.addSelectionListener( new SelectionAdapter()
{
public void widgetSelected( SelectionEvent e )
{
supportedMechanismsTableViewer.setAllChecked( true );
setEditorDirty();
}
} );
deselectAllSupportedMechanismsButton.addSelectionListener( new SelectionAdapter()
{
public void widgetSelected( SelectionEvent e )
{
supportedMechanismsTableViewer.setAllChecked( false );
setEditorDirty();
}
} );
supportedMechanismsTableViewer.addCheckStateListener( new ICheckStateListener()
{
public void checkStateChanged( CheckStateChangedEvent event )
{
setEditorDirty();
}
} );
// SASL Host
saslHostText.addModifyListener( modifyListener );
// SASL Principal
saslPrincipalText.addModifyListener( modifyListener );
// Search Base DN
searchBaseDnText.addModifyListener( modifyListener );
// SASL Quality Of Protection
selectAllQualityOfProtectionButton.addSelectionListener( new SelectionAdapter()
{
public void widgetSelected( SelectionEvent e )
{
saslQualityOfProtectionTableViewer.setAllChecked( true );
setEditorDirty();
}
} );
deselectAllQualityOfProtectionButton.addSelectionListener( new SelectionAdapter()
{
public void widgetSelected( SelectionEvent e )
{
saslQualityOfProtectionTableViewer.setAllChecked( false );
setEditorDirty();
}
} );
saslQualityOfProtectionTableViewer.addCheckStateListener( new ICheckStateListener()
{
public void checkStateChanged( CheckStateChangedEvent event )
{
setEditorDirty();
}
} );
// SASL Realms
saslRealmsTableViewer.addSelectionChangedListener( new ISelectionChangedListener()
{
public void selectionChanged( SelectionChangedEvent event )
{
editSaslRealmsButton.setEnabled( !event.getSelection().isEmpty() );
deleteSaslRealmButton.setEnabled( !event.getSelection().isEmpty() );