* @see #showDialog(Project, String, String, String[], int, Icon)
* @see #showDialog(Component, String, String, String[], int, Icon)
*/
public static int showDialog(String message, String title, String[] options, int defaultOptionIndex, Icon icon) {
final Application application = ApplicationManager.getApplication();
if (application.isUnitTestMode() || application.isHeadlessEnvironment()) {
return ourTestImplementation.show(message);
}
else {
//what's it? if (application.isUnitTestMode()) throw new RuntimeException(message);
MessageDialog dialog = new MessageDialog(message, title, options, defaultOptionIndex, icon);