【问题标题】:Eclipse RCP - limit help view to a single perspectiveEclipse RCP - 将帮助视图限制为单个透视图
【发布时间】:2013-12-06 23:56:38
【问题描述】:

在我的 RCP 应用程序中,当我使用 PlatformUI.getWorkbench().getHelpSystem().displayContext() 方法打开帮助视图时,它会出现在所有透视图中,而不仅仅是当前活动的。能不能只限于目前的视角?

【问题讨论】:

    标签: eclipse-rcp


    【解决方案1】:

    我认为帮助系统中对此没有任何支持。

    您或许可以在工作台页面上安装IPerspectiveListener(或IPerspectiveListener4)来监听视角的变化并手动关闭帮助(帮助位于名为org.eclipse.help.ui.HelpView 的视图中)。

    【讨论】:

    • 可悲的是,我认为这是唯一不包括修改 org.eclipse.ui.help 中的代码或清单或至少与内部包混淆的答案,但它远非完美。
    猜你喜欢
    • 1970-01-01
    • 2014-07-30
    • 2012-04-28
    • 2014-11-25
    • 1970-01-01
    • 1970-01-01
    • 2015-07-15
    • 2014-01-05
    • 2014-12-10
    相关资源
    最近更新 更多