Search in sources :

Example 11 with NotificationGroup

use of com.intellij.notification.NotificationGroup in project google-cloud-intellij by GoogleCloudPlatform.

the class AppEngineDeployToolsMenuAction method notifyNotAppEngineProject.

private void notifyNotAppEngineProject(@NotNull Project project) {
    NotificationGroup notification = new NotificationGroup(GctBundle.message("appengine.tools.menu.deploy.error.title"), NotificationDisplayType.BALLOON, true);
    notification.createNotification(GctBundle.message("appengine.tools.menu.deploy.error.title"), GctBundle.message("appengine.tools.menu.deploy.error.message"), NotificationType.ERROR, null).notify(project);
}
Also used : NotificationGroup(com.intellij.notification.NotificationGroup)

Example 12 with NotificationGroup

use of com.intellij.notification.NotificationGroup in project google-cloud-intellij by GoogleCloudPlatform.

the class DefaultCloudSdkVersionNotifier method showNotification.

@VisibleForTesting
void showNotification() {
    NotificationGroup notification = new NotificationGroup(GctBundle.message("appengine.cloudsdk.version.support.title"), NotificationDisplayType.BALLOON, true);
    String message = "<p>" + CloudSdkValidationResult.CLOUD_SDK_VERSION_NOT_SUPPORTED.getMessage() + "</p>";
    notification.createNotification(GctBundle.message("appengine.cloudsdk.version.support.title"), message, NotificationType.WARNING, null).notify(null);
}
Also used : NotificationGroup(com.intellij.notification.NotificationGroup) VisibleForTesting(com.google.common.annotations.VisibleForTesting)

Example 13 with NotificationGroup

use of com.intellij.notification.NotificationGroup in project google-cloud-intellij by GoogleCloudPlatform.

the class AppEngineStandardLocalRunToolsMenuAction method notifyNotAppEngineStandardProject.

private void notifyNotAppEngineStandardProject(@NotNull Project project) {
    NotificationGroup notification = new NotificationGroup(GctBundle.message("appengine.tools.menu.run.server.error.title"), NotificationDisplayType.BALLOON, true);
    notification.createNotification(GctBundle.message("appengine.tools.menu.run.server.error.title"), GctBundle.message("appengine.tools.menu.run.server.error.message"), NotificationType.ERROR, null).notify(project);
}
Also used : NotificationGroup(com.intellij.notification.NotificationGroup)

Aggregations

NotificationGroup (com.intellij.notification.NotificationGroup)13 Notification (com.intellij.notification.Notification)4 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 NotificationListener (com.intellij.notification.NotificationListener)1 NotificationType (com.intellij.notification.NotificationType)1 Application (com.intellij.openapi.application.Application)1 ExternalProjectsView (com.intellij.openapi.externalSystem.view.ExternalProjectsView)1 ExternalProjectsViewImpl (com.intellij.openapi.externalSystem.view.ExternalProjectsViewImpl)1 UpdatedFiles (com.intellij.openapi.vcs.update.UpdatedFiles)1 THashSet (gnu.trove.THashSet)1 HyperlinkEvent (javax.swing.event.HyperlinkEvent)1 NotNull (org.jetbrains.annotations.NotNull)1 Nullable (org.jetbrains.annotations.Nullable)1