use of com.intellij.notification.Notification in project intellij-leiningen-plugin by derkork.
the class LeiningenUtil method notify.
public static void notify(final String title, final String content, final Project project) {
Notification notification = new Notification(NOTIFICATION_GROUP_ID, title, content, NotificationType.INFORMATION);
Notifications.Bus.notify(notification, project);
}
use of com.intellij.notification.Notification in project intellij-leiningen-plugin by derkork.
the class LeiningenUtil method notifyError.
public static void notifyError(final String title, final String content, final Project project) {
Notification notification = new Notification(NOTIFICATION_GROUP_ID, title, content, NotificationType.ERROR);
Notifications.Bus.notify(notification, project);
}
use of com.intellij.notification.Notification in project scss-lint-plugin by idok.
the class ScssLintProjectComponent method showNotification.
public static void showNotification(String content, NotificationType type) {
Notification errorNotification = new Notification(PLUGIN_NAME, PLUGIN_NAME, content, type);
Notifications.Bus.notify(errorNotification);
}
use of com.intellij.notification.Notification in project scss-lint-plugin by idok.
the class ScssLintProjectComponent method validationFailed.
private void validationFailed(String msg) {
NotificationListener notificationListener = new NotificationListener() {
@Override
public void hyperlinkUpdate(@NotNull Notification notification, @NotNull HyperlinkEvent event) {
ScssLintInspection.showSettings(project);
}
};
String errorMessage = msg + FIX_CONFIG_HREF;
showInfoNotification(errorMessage, NotificationType.WARNING, notificationListener);
LOG.debug(msg);
settingValidStatus = false;
}
use of com.intellij.notification.Notification in project jscs-plugin by idok.
the class JscsProjectComponent method showInfoNotification.
public void showInfoNotification(String content, NotificationType type, NotificationListener notificationListener) {
Notification errorNotification = new Notification(PLUGIN_NAME, PLUGIN_NAME, content, type, notificationListener);
Notifications.Bus.notify(errorNotification, this.project);
}
Aggregations