private static boolean showWarningMessageAndConfigure(final Project project, String message) {
Messages.showWarningDialog(project, message, JFlexBundle.message("jflex"));
// Show settings
final Application application = ApplicationManager.getApplication();
application.invokeLater(new Runnable() {
public void run() {
ShowSettingsUtil.getInstance().editConfigurable(project, application.getComponent(JFlexConfigurable.class));
}
});
return false;