From 3f8e4814ae3ec7f8d0f6a467a2e4c07db4554e7c Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 23 Mar 2012 16:47:05 +0100 Subject: [PATCH] testing delayed notifications --- .../impl/actions/NotificationTestAction.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/notification/impl/actions/NotificationTestAction.java b/platform/platform-impl/src/com/intellij/notification/impl/actions/NotificationTestAction.java index a1e9e584c843..a8a6054a8898 100644 --- a/platform/platform-impl/src/com/intellij/notification/impl/actions/NotificationTestAction.java +++ b/platform/platform-impl/src/com/intellij/notification/impl/actions/NotificationTestAction.java @@ -64,6 +64,13 @@ public class NotificationTestAction extends AnAction implements DumbAware { "You can
close this very

very very very long notification by clicking this link. 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); + } + }); + } }