idea-plugin-revu icon indicating copy to clipboard operation
idea-plugin-revu copied to clipboard

Use standard IntelliJ messaging

Open blabno opened this issue 11 years ago • 0 comments

Currently there is some custom mechanism to report messages or exceptions. There is standard mechanism for that. Here is sample from POM-sorter plugin:

public final class Notifications {

    private static final String NOTIFICATIONS = "POM Sorter";

    public static void inform(@NotNull String title, @NotNull String content, @Nullable Project project)
    {
        com.intellij.notification.Notifications.Bus.notify(new Notification(NOTIFICATIONS, title, content, NotificationType.INFORMATION), project);
    }

    private Notifications()
    {
    }
}

blabno avatar Oct 08 '13 09:10 blabno