From 431c49b1c8a35fe1f23fda91dc7e82a7d0bc5710 Mon Sep 17 00:00:00 2001 From: nik Date: Wed, 10 Jun 2015 18:46:34 +0300 Subject: [PATCH] module editor: fixed 'IllegalArgumentException: parent must be showing' for 'Analyze This Dependency' action --- .../roots/ui/configuration/classpath/ClasspathPanelImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/classpath/ClasspathPanelImpl.java b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/classpath/ClasspathPanelImpl.java index e3356532e0e5..2936d2426a72 100644 --- a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/classpath/ClasspathPanelImpl.java +++ b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/classpath/ClasspathPanelImpl.java @@ -819,7 +819,7 @@ public class ClasspathPanelImpl extends JPanel implements ClasspathPanel { for (DependenciesBuilder builder : builders) { for (Set files : builder.getDependencies().values()) { if (!files.isEmpty()) { - Messages.showInfoMessage(myEntryTable, + Messages.showInfoMessage(myProject, "Dependencies were successfully collected in \"" + ToolWindowId.DEPENDENCIES + "\" toolwindow", FindBundle.message("find.pointcut.applications.not.found.title")); @@ -827,7 +827,7 @@ public class ClasspathPanelImpl extends JPanel implements ClasspathPanel { } } } - if (Messages.showOkCancelDialog(myEntryTable, + if (Messages.showOkCancelDialog(myProject, "No code dependencies were found. Would you like to remove the dependency?", CommonBundle.getWarningTitle(), Messages.getWarningIcon()) == Messages.OK) { removeSelectedItems(TableUtil.removeSelectedItems(myEntryTable));