List of usage examples for com.intellij.openapi.command.undo UndoableAction redo
void redo() throws UnexpectedUndoException;
From source file:com.intellij.tasks.actions.context.UndoableCommand.java
License:Apache License
public static void execute(final Project project, final UndoableAction action, String name, String groupId) { CommandProcessor.getInstance().executeCommand(project, new Runnable() { public void run() { try { action.redo(); } catch (UnexpectedUndoException e) { throw new RuntimeException(e); }//www . j a v a 2 s.c o m UndoManager.getInstance(project).undoableActionPerformed(action); } }, name, groupId); }