if ( ArrayUtils.isEmpty( values ) )
{
throw new IllegalArgumentException( "Expected non-null and non-empty values array." ); //$NON-NLS-1$
}
ValueAddedEvent event = null;
EventRegistry.suspendEventFiringInCurrentThread();
for ( IValue value : values )
{
String attributeDescription = value.getAttribute().getDescription();
IAttribute attribute = entry.getAttribute( attributeDescription );
if ( attribute == null )
{
attribute = new Attribute( entry, attributeDescription );
entry.addAttribute( attribute );
}
Value newValue = new Value( attribute, value.getRawValue() );
attribute.addValue( newValue );
if ( event == null )
{
event = new ValueAddedEvent( entry.getBrowserConnection(), entry, attribute, newValue );
}
}
EventRegistry.resumeEventFiringInCurrentThread();
// fire event