StructuredSelection selection = ( StructuredSelection ) binaryAttributesTableViewer.getSelection();
if ( !selection.isEmpty() )
{
String oldAttribute = ( String ) selection.getFirstElement();
BinaryAttributeDialog dialog = new BinaryAttributeDialog( oldAttribute );
if ( Dialog.OK == dialog.open() && dialog.isDirty() )
{
binaryAttributes.remove( oldAttribute );
String newAttribute = dialog.getAttribute();
if ( newAttribute != null && !"".equals( newAttribute ) && !binaryAttributes.contains( newAttribute ) ) //$NON-NLS-1$
{
binaryAttributes.add( newAttribute );
}