eclipse - 如何将 e4 eclipse 部件添加到“显示 View ”对话框中

标签 eclipse dialog e4

我正在使用 e4 技术开发一个 Eclipse 插件,旨在在 Eclipse IDE 中运行。

如何将我的部件(在插件的fragment.e4xmi 文件中定义为“PartDescriptor”)添加到“显示 View ”对话框树中(主菜单 > 窗口 > 显示 View > 其他...)?

基于 org.eclipse.e4.ui.workbench.swt.internal.copy.ViewContentProvider#createChildren 的检查源代码并基于使用 Live Application Model 对其他部件的 PartDescriptors 检查我尝试将以下标签添加到 Supplementary 选项卡上的 PartDescriptor:

  • 查看
  • categoryTag:我的组

但是,这对我不起作用。我使用 Eclipse 4.3 和 e4 0.14。

最佳答案

托马斯·辛德尔 (Thomas Schindl) 表示,这是不可能的 http://www.eclipse.org/forums/index.php/t/499424/

Hello.

How can I add my part (defined as 'PartDescriptor' in fragment.e4xmi file in my plugin) into the "Show View" dialog tree (main menu > Window > Show View > Other ...) ?

Based on examination of org.eclipse.e4.ui.workbench.swt.internal.copy.ViewContentProvider#createChildren source code and based on examination of PartDescriptors of other parts using Live Application Model part I tried to add following tags to my PartDescriptor on Supplementary tab:

View categoryTag:MyGroup

However, it doesn't work for me. I use Eclipse 4.3 and e4 0.14.

Thans for answers.

<小时/>

I don't think this is the class making up the Show View ... content in the compat layer which is constructed from IViewDescriptors IIRC. Hence if you contribute through a fragment it can't show up there.

Tom

关于eclipse - 如何将 e4 eclipse 部件添加到“显示 View ”对话框中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18048617/

相关文章:

java - E4 EPartService findPart() 抛出 java.lang.Null 指针异常

java - 在 Eclipse 下实现 Java/Android 中的构建配置

java - 无法将 Swagger-ui 链接到我的 Swagger Spring mvc 项目

java - 如何设置创建 Android 设备选项

c - 如何从对话框中获取文本?

mfc - 如何显示无模式对话框并立即在其中显示信息?

jsf - 如何仅处理 commandButton 操作中的素面对话框?

java - 如何在 Pure Eclipse 4 RCP 中实现控制台 View

eclipse - E4 不调用我的@PostConstruct-Method

Android - 单击按钮关闭 Activity