if ( CollectionUtils.isEmpty( values ) )
{
throw new IllegalArgumentException( "Expected non-null and non-empty values collection." ); //$NON-NLS-1$
}
ValueDeletedEvent event = null;
try
{
EventRegistry.suspendEventFiringInCurrentThread();
for ( IValue value : values )
{
IAttribute attribute = value.getAttribute();
IEntry entry = attribute.getEntry();
attribute.deleteValue( value );
if ( event == null )
{
event = new ValueDeletedEvent( entry.getBrowserConnection(), entry, attribute, value );
}
if ( attribute.getValueSize() == 0 )
{
attribute.getEntry().deleteAttribute( attribute );