{
final Element element = elements[i];
final Expression attribute = element.getStyleExpression(metaData.getStyleKey());
if (value == null)
{
undos.add(new StyleExpressionEditUndoEntry
(element.getObjectID(), metaData.getStyleKey(), attribute, null));
element.setStyleExpression(metaData.getStyleKey(), null);
element.notifyNodePropertiesChanged();
}
else
{
final Expression expression = value.getInstance();
undos.add(new StyleExpressionEditUndoEntry
(element.getObjectID(), metaData.getStyleKey(), attribute, expression));
element.setStyleExpression(metaData.getStyleKey(), expression);
element.notifyNodePropertiesChanged();
}
}