{
final ArrayList<UndoEntry> undoEntries = new ArrayList<UndoEntry>();
undoEntries.add(new AttributeExpressionEditUndoEntry(chartElement.getObjectID(),
AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE,
editResult.getOriginalChartExpression(), editResult.getChartExpression()));
undoEntries.add(new AttributeEditUndoEntry(chartElement.getObjectID(),
LegacyChartElementModule.NAMESPACE, LegacyChartElementModule.PRIMARY_DATA_COLLECTOR_FUNCTION_ATTRIBUTE,
editResult.getOriginalPrimaryDataSource(), editResult.getPrimaryDataSource()));
undoEntries.add(new AttributeEditUndoEntry(chartElement.getObjectID(),
LegacyChartElementModule.NAMESPACE, LegacyChartElementModule.SECONDARY_DATA_COLLECTOR_FUNCTION_ATTRIBUTE,
editResult.getOriginalSecondaryDataSource(), editResult.getSecondaryDataSource()));
final CompoundUndoEntry ue = new CompoundUndoEntry(undoEntries.toArray(new UndoEntry[undoEntries.size()]));
activeContext.getUndo().addChange(Messages.getInstance().getString("EditLegacyChartAction.Undo"), ue);