schema.removeAttributeType( attributeType );
}
}
else if ( item == DeleteAction.ItemType.objectClass )
{
ObjectClass objectClass = ( ( ObjectClassWrapper ) selection ).getMyObjectClass();
MessageBox messageBox = new MessageBox( PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getShell(), SWT.OK | SWT.CANCEL | SWT.ICON_QUESTION );
messageBox
.setMessage( Messages
.getString( "DeleteAction.Are_you_sure_you_want_to_delete_the_object_class" ) + objectClass.getNames()[0] + Messages.getString( "DeleteAction.Interrogation" ) ); //$NON-NLS-1$ //$NON-NLS-2$
if ( messageBox.open() == SWT.OK )
{
//try to close the associated editors before deleting the objectClass
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();