final Expression attribute = element.getAttributeExpression
(metaData.getNameSpace(), metaData.getName());
if (value != null)
{
final Expression expression = value.getInstance();
undos.add(new AttributeExpressionEditUndoEntry
(element.getObjectID(), metaData.getNameSpace(), metaData.getName(), attribute, expression));
element.setAttributeExpression(metaData.getNameSpace(), metaData.getName(), expression);
}
else
{
undos.add(new AttributeExpressionEditUndoEntry
(element.getObjectID(), metaData.getNameSpace(), metaData.getName(), attribute, null));
element.setAttributeExpression(metaData.getNameSpace(), metaData.getName(), null);
}
}
undo.addChange(Messages.getString("VisualAttributeTableModel.UndoNameExpression"),