boolean changed = false;
final ReportElement[] elements = getAttributeDataBackend().getData();
final ArrayList<UndoEntry> undos = new ArrayList<UndoEntry>();
for (int i = 0; i < elements.length; i++)
{
final ReportElement element = elements[i];
final Object attribute = element.getAttribute(metaData.getNameSpace(), metaData.getName());
if ((ObjectUtilities.equal(attribute, value)) == false)
{
undos.add(new AttributeEditUndoEntry
(element.getObjectID(), metaData.getNameSpace(), metaData.getName(), attribute, value));
element.setAttribute(metaData.getNameSpace(), metaData.getName(), value);
changed = true;
}
}
undo.addChange(Messages.getString("AttributeTableModel.UndoName"),
new CompoundUndoEntry((UndoEntry[]) undos.toArray(new UndoEntry[undos.size()])));