Search in sources :

Example 1 with CustomNotificationListener

use of com.android.tools.idea.gradle.project.sync.hyperlink.CustomNotificationListener in project android by JetBrains.

the class AndroidGradleNotification method showBalloon.

public void showBalloon(@NotNull String title, @NotNull String text, @NotNull NotificationType type, @NotNull NotificationGroup group, @NotNull NotificationHyperlink... hyperlinks) {
    NotificationListener notificationListener = new CustomNotificationListener(myProject, hyperlinks);
    String newText = addHyperlinksToText(text, hyperlinks);
    showBalloon(title, newText, type, group, notificationListener);
}
Also used : CustomNotificationListener(com.android.tools.idea.gradle.project.sync.hyperlink.CustomNotificationListener) NotificationListener(com.intellij.notification.NotificationListener) CustomNotificationListener(com.android.tools.idea.gradle.project.sync.hyperlink.CustomNotificationListener)

Example 2 with CustomNotificationListener

use of com.android.tools.idea.gradle.project.sync.hyperlink.CustomNotificationListener in project android by JetBrains.

the class AndroidFacetImporterBase method reportCannotFindAndroidPlatformError.

private static void reportCannotFindAndroidPlatformError(String moduleName, @Nullable String apiLevel, Project project) {
    final OpenAndroidSdkManagerHyperlink hyperlink = new OpenAndroidSdkManagerHyperlink();
    AndroidUtils.reportImportErrorToEventLog("Cannot find appropriate Android platform" + (apiLevel != null ? " for API level " + apiLevel : "") + ". " + hyperlink.toHtml(), moduleName, project, new CustomNotificationListener(project, hyperlink));
}
Also used : OpenAndroidSdkManagerHyperlink(com.android.tools.idea.gradle.project.sync.hyperlink.OpenAndroidSdkManagerHyperlink) CustomNotificationListener(com.android.tools.idea.gradle.project.sync.hyperlink.CustomNotificationListener)

Aggregations

CustomNotificationListener (com.android.tools.idea.gradle.project.sync.hyperlink.CustomNotificationListener)2 OpenAndroidSdkManagerHyperlink (com.android.tools.idea.gradle.project.sync.hyperlink.OpenAndroidSdkManagerHyperlink)1 NotificationListener (com.intellij.notification.NotificationListener)1