Is it possible to display notification when popup is displayed?
I'm trying to display notification when popup is display - it doesn't work. It displays only in event log. I found pretty similar thread - http://devnet.jetbrains.com/message/5512013#5512013 - but nothing helped me.
Is it possible to display notification when popup is displayed?
Please sign in to leave a comment.
Im having the same issue.
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);
}
});
}
}