mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-75077 editor dialog UI bug on mac
This commit is contained in:
+2
-2
@@ -109,7 +109,7 @@ public abstract class AbstractLanguageInjectionSupport extends LanguageInjection
|
||||
}
|
||||
|
||||
@Nullable
|
||||
protected static BaseInjection showDefaultInjectionUI(Project project, BaseInjection injection) {
|
||||
protected static BaseInjection showDefaultInjectionUI(final Project project, BaseInjection injection) {
|
||||
final BaseInjectionPanel panel = new BaseInjectionPanel(injection, project);
|
||||
panel.reset();
|
||||
final DialogBuilder builder = new DialogBuilder(project);
|
||||
@@ -128,7 +128,7 @@ public abstract class AbstractLanguageInjectionSupport extends LanguageInjection
|
||||
catch (Exception e) {
|
||||
final Throwable cause = e.getCause();
|
||||
final String message = e.getMessage() + (cause != null? "\n "+cause.getMessage():"");
|
||||
Messages.showErrorDialog(builder.getWindow(), message, "Unable to Save");
|
||||
Messages.showErrorDialog(project, message, "Unable to Save");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user