Example usage for com.intellij.openapi.ui MessageType toNotificationType

List of usage examples for com.intellij.openapi.ui MessageType toNotificationType

Introduction

In this page you can find the example usage for com.intellij.openapi.ui MessageType toNotificationType.

Prototype

@NotNull
    public NotificationType toNotificationType() 

Source Link

Usage

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);
}