Community
Participate
Working Groups
Currently the usage of the AbstractNotificationPopuprequires that you extend the abstract class. I would be nice to have a simple builder api for creating notications.
Marcus, something for you? This API was contributed by your colleague Matthias Becker.
Nice idea. But actually the NotifcationPopup is like a dialog or view. It has a createContentArea method like Dialogs, editors and views have. I understand your use case I guess. E.g. one just wants to set up a quick notification, maybe just a text or a link. But I'm not sure how a e.g. a builder pattern should be implemented here. I would need more uses cases to understand what the typical case is. Is it e.g. usually just a text? I can only find two occurrences of AbstractNotificationPopup, thats not enough to see the typical usage.
(In reply to Marcus Höpfner from comment #2) > Nice idea. But actually the NotifcationPopup is like a dialog or view. > It has a createContentArea method like Dialogs, editors and views have. > > I understand your use case I guess. E.g. one just wants to set up a quick > notification, maybe just a text or a link. > But I'm not sure how a e.g. a builder pattern should be implemented here. > I would need more uses cases to understand what the typical case is. Is it > e.g. usually just a text? > I can only find two occurrences of AbstractNotificationPopup, thats not > enough to see the typical usage. I think one of the reasons why is it not used a lot is that it is new and hard to use. A builder for just a link or text would be great. Maybe something like the following: NotifyBuilder.for(shell).text("Message").title("Title").delay(2000).open(); NotifyBuilder.for(shell).text("Message").title("Title").link(linkWidget).delay(2000).open();
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/183888
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/183888 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=ee66b2c62eeec3974a6b4c6f96fda79491460ebe
New Gerrit change created: https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/190992
Gerrit change https://git.eclipse.org/r/c/www.eclipse.org/eclipse/news/+/190992 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=0a6dc4f9c47e3b7a0c7774c81ecef937934e2076