mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-80417
This commit is contained in:
@@ -53,7 +53,11 @@ public abstract class UndoRedoAction extends DumbAwareAction {
|
||||
}
|
||||
|
||||
UndoManager undoManager = getUndoManager(editor, dataContext);
|
||||
presentation.setEnabled(undoManager != null && isAvailable(editor, undoManager));
|
||||
if (undoManager == null) {
|
||||
presentation.setEnabled(false);
|
||||
return;
|
||||
}
|
||||
presentation.setEnabled(isAvailable(editor, undoManager));
|
||||
|
||||
Pair<String, String> pair = getActionNameAndDescription(editor, undoManager);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user