idea-plugin-revu
idea-plugin-revu copied to clipboard
Use standard IntelliJ messaging
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()
{
}
}