Community
Participate
Working Groups
I try to add my own undo/redo handlers in an Eclipse plugin to the Eclipse Java IDE. I use JDT, Xtext, GEF 3 and others. When I try to extend the general Eclipse main menu for undo and redo then this does not work anymore. Previously it was possible to add a handler (e3 or e4 API) with the command id org.eclipse.ui.edit.undo in plugin.xml (e3) or fragment.e4xmi (e4). But it does not re-target to my own handler. Instead the menu entries are always disabled. If I add my own menu/toolbar entry then it does work. But the already added entries from the Eclipse IDE do not change their state. I worked before Eclipse version 2020-09.
Would you be able to make a small example plugin that shows the problem? The redo/undo retargeting seems to work for all current editors in Eclipse, it would be very had to reproduce your problem without the example.