Bug 574473 - Extending undo/redo does not work anymore
Summary: Extending undo/redo does not work anymore
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.21   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-25 11:18 EDT by Udo Walker CLA
Modified: 2021-06-28 03:12 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.