List of usage examples for com.intellij.openapi.ui MessageType toNotificationType
@NotNull
public NotificationType toNotificationType()
From source file:com.intellij.notification.NotificationGroup.java
License:Apache License
public Notification createNotification(@NotNull final String content, @NotNull final MessageType type) { return createNotification(content, type.toNotificationType()); }
From source file:com.intellij.xdebugger.impl.XDebugSessionImpl.java
License:Apache License
@Override public void reportMessage(@NotNull final String message, @NotNull final MessageType type, @Nullable final HyperlinkListener listener) { NotificationListener notificationListener = listener == null ? null : new NotificationListener() { @Override//from w w w .j a v a 2s . c om public void hyperlinkUpdate(@NotNull Notification notification, @NotNull HyperlinkEvent event) { listener.hyperlinkUpdate(event); } }; NOTIFICATION_GROUP.createNotification("", message, type.toNotificationType(), notificationListener) .notify(myProject); }