IDEA-119704 Disable "Unlinked Gradle project?" dialog doesn't work on OSX

This commit is contained in:
Vladislav.Soroka
2014-02-04 18:14:56 +04:00
parent be43eeca2d
commit 32502b5ebe
2 changed files with 3 additions and 2 deletions
@@ -26,7 +26,7 @@ gradle.notifications.hide.tip=Hide the tip
gradle.notifications.apply.suggestion=Ok, apply suggestion!
gradle.notifications.unlinked.project.found.title=Unlinked Gradle project?
gradle.notifications.unlinked.project.found.msg=<a href="{0}">Import Gradle project</a>, this will also enable Gradle Tool Window.
gradle.notifications.do.not.show=Don't want to see the message for the project again: <a href="{0}">press here</a>.
gradle.notifications.do.not.show=Don't want to see the message for the project again: <a href="do.not.show">press here</a>.
gradle.codeInsight.action.apply_plugin.text=Add gradle plugin
gradle.codeInsight.action.apply_plugin.description=Add selected gradle plugin to the project
@@ -80,13 +80,14 @@ public class GradleStartupActivity implements StartupActivity {
if (files != null && files.length != 0) {
String message = String.format("%s<br>\n%s",
GradleBundle.message("gradle.notifications.unlinked.project.found.msg", IMPORT_EVENT_DESCRIPTION),
GradleBundle.message("gradle.notifications.do.not.show", DO_NOT_SHOW_EVENT_DESCRIPTION));
GradleBundle.message("gradle.notifications.do.not.show"));
GradleNotification.getInstance(project).showBalloon(
GradleBundle.message("gradle.notifications.unlinked.project.found.title"),
message, NotificationType.INFORMATION, new NotificationListener.Adapter() {
@Override
protected void hyperlinkActivated(@NotNull Notification notification, @NotNull HyperlinkEvent e) {
notification.expire();
if (IMPORT_EVENT_DESCRIPTION.equals(e.getDescription())) {
final ProjectDataManager projectDataManager = ServiceManager.getService(ProjectDataManager.class);
GradleProjectImportBuilder gradleProjectImportBuilder = new GradleProjectImportBuilder(projectDataManager);