Revert\Undo failed Command

已回答

I have undoable command that may be reverted by Ctrl-Z. When i execute command and catch some error i need to revert all my changes. Can i do it programmatically?

0

I found solution with confirmationDialog, but i already show another dialog with my info. Two dialog in a row seems like overhead. 

UndoManager.getInstance(project).undo(null);
0

Solved with
UndoConfirmationPolicy.DO_NOT_REQUEST_CONFIRMATION

0

请先登录再写评论。