【问题标题】:How to authenticate update site in eclipse-rcp如何在 eclipse-rcp 中验证更新站点
【发布时间】:2019-08-20 06:14:02
【问题描述】:

当通过 web 或 rcp 应用程序(版本 3.x 和 4.x)访问时,如何验证更新站点 url。

参考网址:https://www.eclipse.org/forums/index.php/t/1093851/https://www.eclipsezone.com/eclipse/forums/t106640.html

在第一个 url 问题中提到了使用 LoginDialog (org.eclipse.equinox.internal.p2.ui.dialogs.UserValidationDialog),但我不知道如何在代码中使用它。

我也按照第二个网址中提到的步骤操作,但无法获得任何对话框。

请在下面找到带有数字提到的 4 个步骤的图片链接,我希望在第 3 步和第 4 步之间进行身份验证对话框

Image with steps 1 and 2

Image with step 3

Image with step 4

【问题讨论】:

    标签: java eclipse-plugin eclipse-rcp equinox p2


    【解决方案1】:

    来自引用的 URL https://www.eclipse.org/forums/index.php/t/1093851/

    p2 使用 OSGi 服务机制来查找服务。您需要提供 org.eclipse.equinox.p2.core.UIServices 的实现;

    尝试将“org.eclipse.equinox.p2.ui”及其依赖项添加到您的RCP,此捆绑包注册使用org.eclipse.equinox.internal.p2.ui.dialogs.UserValidationDialogpublic class ValidationDialogServiceUI extends UIServices

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-09-27
      • 2011-07-09
      • 1970-01-01
      • 2014-10-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-15
      相关资源
      最近更新 更多