Example usage for com.intellij.openapi.command.undo UndoableAction redo

List of usage examples for com.intellij.openapi.command.undo UndoableAction redo

Introduction

In this page you can find the example usage for com.intellij.openapi.command.undo UndoableAction redo.

Prototype

void redo() throws UnexpectedUndoException;

Source Link

Usage

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);

}