From ef3e21145d28fccf96d1ee96fa3d8ea42426c5f5 Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Tue, 11 Oct 2011 20:07:04 +0400 Subject: [PATCH] IDEA-75077 editor dialog UI bug on mac --- .../intelliLang/inject/AbstractLanguageInjectionSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/AbstractLanguageInjectionSupport.java b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/AbstractLanguageInjectionSupport.java index 47fdefb084b5..cd95ebae7d49 100644 --- a/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/AbstractLanguageInjectionSupport.java +++ b/plugins/IntelliLang/src/org/intellij/plugins/intelliLang/inject/AbstractLanguageInjectionSupport.java @@ -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"); } } });