【问题标题】:Add Custom Perspective sub menu in Eclipse Open Perspective menu在 Eclipse Open Perspective 菜单中添加 Custom Perspective 子菜单
【发布时间】:2017-10-20 14:41:06
【问题描述】:

在 Eclipse 中打开自定义透视图的一种方法如下: [菜单]窗口->透视->打开透视->其他。

然后会打开一个对话框,其中包含可用视角列表,用户可以在其中选择所需的项目。

有没有办法让自定义透视菜单出现在“其他”子菜单上方。 这可以减少用户的点击次数,轻松找到所需的视角。

【问题讨论】:

    标签: eclipse eclipse-plugin eclipse-rcp usability


    【解决方案1】:

    “其他”上面列出的视角被称为“视角快捷方式”。

    在 Eclipse UI 中,您可以使用“Window > Perspective > Customize Perspective”添加这些内容。选择“快捷方式”选项卡并选择“打开透视”子菜单。然后,您可以选择要显示为“快捷方式”的项目。

    在 Eclipse 插件中,您可以使用 org.eclipse.ui.perspectiveExtensions 扩展点来指定 perspectiveShortcut

    IPerspectiveFactory 中,您可以使用IPageLayout.addPerspectiveShortcut 方法定义快捷方式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多