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