Example usage for com.intellij.openapi.ui TestDialog OK

List of usage examples for com.intellij.openapi.ui TestDialog OK

Introduction

In this page you can find the example usage for com.intellij.openapi.ui TestDialog OK.

Prototype

TestDialog OK

To view the source code for com.intellij.openapi.ui TestDialog OK.

Click Source Link

Usage

From source file:org.jetbrains.idea.SvnTestCase.java

License:Apache License

protected void undo() {
    UIUtil.invokeAndWaitIfNeeded(new Runnable() {
        @Override//  w ww  .j a  v  a2s  .co  m
        public void run() {
            final TestDialog oldTestDialog = Messages.setTestDialog(TestDialog.OK);
            try {
                UndoManager.getInstance(myProject).undo(null);
            } finally {
                Messages.setTestDialog(oldTestDialog);
            }
        }
    });
}