...
An UndoEntry holds a reference to the element and the value of the operation and a . A reference to the UndoEntry is held for a long time in the undo stack. Ensure to only add small objects to the undo stack.
Every element containing large cached data should dispose the cached data when the element is removed from the visual report. E.g deleting a StaticImageReportElement disposes the temporary image to prevent OOM exceptions.
The undo stack is currently limit to 10000 undo operationslimited to 10000 UndoEntry objects. The complete oldest transaction is removed as soon as the limit of 10000 UndoEntries is exceeded.
The text/key used in the startTransaction method is currently not used but might be useful to extend the Undo/RedoCommand to show the operation.
...