mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-119704 Disable "Unlinked Gradle project?" dialog doesn't work on OSX
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user