Undo into dialog CeH9 Created December 30, 2016 16:52 How to use Undoable actions in dialogs? Ctr+z doesn't work until dialog opened, but my UndoableActions must work into dialog only (local history).
Arsen, could you please describe what behavior you want to implement?
I want to add Undo\Redo for my actions. For example user can change some DataClasses like https://github.com/CeH9/PackageTemplates/blob/5e5cae4b79c0b3ee8393b612c3b20a242c100b07/src/global/models/PackageTemplate.java#L14-L22 via UI like this: http://ceh9.github.io/PackageTemplates/tutorials/en/create_template/
I see, thanks. How do you want Undo to work in the dialogs?
Shortcuts(ctr+z) or actins in top bar like in Idea. Dialog must keep his own history of multiple actions, not one revert for all actions like in my prev questions.
Have you tried wrapping each action in a separate command?