Java RCP / SWT – Eclipse RCP中的“Android Toast like”对话框
有没有人知道是否存在一些弹出窗口的实现,比如Android:TOAST?
通知是Mylyn公共的一部分。
要集成它们,请将http://download.eclipse.org/mylyn/releases/latest中的Mylyn Commons Notificationsfunction添加到目标平台定义中。 相关的捆绑包是
org.eclipse.mylyn.commons.notifications.ui
-
org.eclipse.mylyn.commons.notifications.core
。
您可以将category
和event
添加到通知扩展点,如下所示:
This is the description of the event.
要触发通知,请使用NotificationService
如下所示:
AbstractUiNotification notification = ... NotificationsUi.getService().notify( asList( notification ) );
notification
必须是AbstractUiNotification
的子类,其中传递给构造函数的eventId
必须与扩展名中的eventId
匹配。
通知插件还会在“ 常规”>“通知”下添加首选项页面,以便用户选择应显示哪些通知。
不,但你可以使用插件org.eclipse.mylyn.commons.ui,它包含有趣的类来显示屏幕右下方的通知。