testing delayed notifications

This commit is contained in:
peter
2012-03-23 16:48:02 +01:00
parent 346fac0425
commit 3f8e4814ae
@@ -64,6 +64,13 @@ public class NotificationTestAction extends AnAction implements DumbAware {
"You can<br> close this very<p> very very very long notification by clicking <a href=\"close\">this link</a>. Long long long long. It should be long. Very long. Too long. And even longer.",
type, listener);
messageBus.syncPublisher(Notifications.TOPIC).notify(notification);
ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {
@Override
public void run() {
//DebugUtil.sleep(1000);
messageBus.syncPublisher(Notifications.TOPIC).notify(notification);
}
});
}
}