for (int i = 0; i < elements.length; i++)
{
final Element element = elements[i];
final ElementStyleSheet styleSheet = element.getStyle();
final Object attribute = styleSheet.getStyleProperty(metaData.getStyleKey());
undos.add(new StyleEditUndoEntry
(element.getObjectID(), metaData.getStyleKey(), attribute, value));
styleSheet.setStyleProperty(metaData.getStyleKey(), value);
}
undo.addChange(Messages.getString("StyleChange"), new CompoundUndoEntry((UndoEntry[]) undos.toArray(new UndoEntry[undos.size()])));
}