Bug 574473

Summary: Extending undo/redo does not work anymore
Product: [Eclipse Project] Platform Reporter: Udo Walker <udo.walker>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: rolf.theunissen
Version: 4.21   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Udo Walker CLA 2021-06-25 11:18:19 EDT
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.
Comment 1 Rolf Theunissen CLA 2021-06-28 03:12:44 EDT
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.