IDEA-84045 GitVcsPanel. Display Messages better by specifying correct parent component

This commit is contained in:
Kirill Likhodedov
2012-04-04 15:02:22 +04:00
parent 3a7a7ec06c
commit b2fb7415c5
@@ -91,17 +91,17 @@ public class GitVcsPanel {
try {
version = GitVersion.identifyVersion(executable);
} catch (Exception e) {
Messages.showErrorDialog(myProject, e.getMessage(), GitBundle.getString("find.git.error.title"));
Messages.showErrorDialog(myRootPanel, e.getMessage(), GitBundle.getString("find.git.error.title"));
return;
}
if (version.isSupported()) {
Messages.showInfoMessage(myProject,
Messages.showInfoMessage(myRootPanel,
String.format("<html>%s<br>Git version is %s</html>", GitBundle.getString("find.git.success.title"),
version.toString()),
GitBundle.getString("find.git.success.title"));
} else {
Messages.showWarningDialog(myProject, GitBundle.message("find.git.unsupported.message", version.toString(), GitVersion.MIN),
Messages.showWarningDialog(myRootPanel, GitBundle.message("find.git.unsupported.message", version.toString(), GitVersion.MIN),
GitBundle.getString("find.git.success.title"));
}
}