public class NotificationProjectServiceImpl extends Object implements NotificationProjectService
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOGGER |
static int |
NOTIFICATION_MINIMAL_PERIOD_MS |
Constructor and Description |
---|
NotificationProjectServiceImpl(com.intellij.openapi.project.Project project)
Full initialization constructor.
|
Modifier and Type | Method and Description |
---|---|
protected com.intellij.notification.Notification |
createNotification(com.intellij.notification.NotificationType type,
String title,
String subtitle,
String content)
Factory method for notification objects.
|
void |
notifyGlobal(com.intellij.notification.NotificationType type,
String title,
String subtitle,
String content)
Emits an application level notification (not for a specific project).
|
void |
notifyProject(com.intellij.notification.NotificationType type,
String title,
String subtitle,
String content)
Emits a notification that is related to an IDE project.
|
public static final int NOTIFICATION_MINIMAL_PERIOD_MS
public static final org.slf4j.Logger LOGGER
public NotificationProjectServiceImpl(com.intellij.openapi.project.Project project)
project
- public void notifyGlobal(com.intellij.notification.NotificationType type, String title, String subtitle, String content)
NotificationProjectService
notifyGlobal
in interface NotificationProjectService
type
- roughly, message criticity.title
- notification title (gets seen first)subtitle
- subtitle that gets seen when the notification pops.content
- the notification contents, more details that are displayed when the user opens the event or the event log.@NotNull protected com.intellij.notification.Notification createNotification(com.intellij.notification.NotificationType type, String title, String subtitle, String content)
type
- roughly, message criticity.title
- notification title (gets seen first).subtitle
- subtitle, is shown when the notification, pops.content
- detailed contents, seen when the user opens the event (or looks at the event log).public void notifyProject(com.intellij.notification.NotificationType type, String title, String subtitle, String content)
NotificationProjectService
notifyProject
in interface NotificationProjectService
type
- roughly, message criticity.title
- notification title (gets seen first)subtitle
- subtitle that gets seen when the notification pops.content
- the notification contents, more details that are displayed when the user opens the event or the event log.Copyright © 2018-2019 Henix. All Rights Reserved.