我正在使用 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/