use of com.intellij.openapi.ui.TestDialog in project intellij-community by JetBrains.
the class ExternalSystemImportingTestCase method configConfirmationForYesAnswer.
protected static AtomicInteger configConfirmationForYesAnswer() {
final AtomicInteger counter = new AtomicInteger();
Messages.setTestDialog(new TestDialog() {
@Override
public int show(String message) {
counter.set(counter.get() + 1);
return 0;
}
});
return counter;
}
use of com.intellij.openapi.ui.TestDialog in project intellij-community by JetBrains.
the class MavenImportingTestCase method configConfirmationForYesAnswer.
protected static AtomicInteger configConfirmationForYesAnswer() {
final AtomicInteger counter = new AtomicInteger();
Messages.setTestDialog(new TestDialog() {
@Override
public int show(String message) {
counter.set(counter.get() + 1);
return 0;
}
});
return counter;
}
use of com.intellij.openapi.ui.TestDialog in project kotlin by JetBrains.
the class MavenImportingTestCase method configConfirmationForYesAnswer.
protected static AtomicInteger configConfirmationForYesAnswer() {
final AtomicInteger counter = new AtomicInteger();
Messages.setTestDialog(new TestDialog() {
@Override
public int show(String message) {
counter.set(counter.get() + 1);
return 0;
}
});
return counter;
}
Aggregations