I am currently developing a TextEditor using JFace and seeking to replace the standard Undo functionality with a custom one.
Is there a tutorial available to do this and to replicate the appearance of the standard implementation (i.e., icon in context menu, key bindings)?
So far I have tried providing my own implementation of IUndoManager in my source viewer's configuration, but while this might suffice functionality-wise, the element in the context menu does not assume the appearance of the standard implementation and I failed to reengineer how the default implementation achieves this. Also, I am unsure whether this implementation is correct and what exactly the IUndoContext's purpose is.
If someone could help me with this, I would be very much relieved