2 comments
Comment actions Permalink

Im having the same issue.

0
Comment actions Permalink

Notifications.Bus.register is deprecated, do it like so:

public class YourComponent implements ProjectComponent {

    public static final NotificationGroup GROUP_DISPLAY_ID_INFO = new NotificationGroup("Eclipse code formatter info", NotificationDisplayType.BALLOON, true);

    public static void notify(final Project project, String content) {
       final Notification notification = ProjectSettingsComponent.GROUP_DISPLAY_ID_INFO.createNotification(content,
             NotificationType.INFORMATION);
       ApplicationManager.getApplication().invokeLater(new Runnable() {
          @Override
          public void run() {
             Notifications.Bus.notify(notification, project);
          }
       });
    }
}
0

Please sign in to leave a comment.