Eclipse插件-在对话框中获取启动配置树列表。

威望

我目前正在尝试将“ RunConfigurations ...”窗口的红色部分(请参见img 1.1)放入TitleAreaDialog(请参见img 1.2)中。最终结果应如下所示:(请参见img 1.3)

img 1.1 img 1.1运行配置窗口img 1.2

img 1.2标题区域对话框

img 1.3

img 1.3最终结果

使用插件“ Spy”,我发现了一些有用的信息:在“ LaunchConfigurationsDialog”类中创建了“运行配置...”窗口(img 1.1),该类具有“ LaunchConfigurationView”作为属性(注意:此属性是一个班级)。在此私有属性中,您可以找到“ LaunchConfigurationFilteredTree”属性(注意:另一个类)。

I think, that this last attribute is what I'm looking for. But I can't figure out which methods I have to override to be able to show this FilteredTreeList with all Launch Configurations in my CustomTitleAreaDialog.

Thanks in advance for your help!

greg-449

All the classes you have found are in internal packages and are therefore not part of the Eclipse API (see Eclipse API Rules of Engagement). These classes may be changed at any time breaking your plug-in.

The core of the view does use official APIs.

First it gets the ILaunchManager:

ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();

The root elements of the tree are the ILaunchConfigurationType entries:

ILaunchConfigurationType [] allTypes = manager.getLaunchConfigurationTypes();

The children of ILaunchConfigurationType are the actual ILaunchConfiguration launch configuration objects:

ILaunchConfiguration [] configs = manager.getLaunchConfigurations(configType);

If you build a TreeViewer using these methods you will be OK.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Eclipse插件-在对话框中获取启动配置树列表。

来自分类Dev

Eclipse中的ANTLR插件

来自分类Dev

在对话框中打开Eclipse编辑器

来自分类Dev

获取Eclipse RCP中的活动插件列表

来自分类Dev

使用所需的插件启动Eclipse

来自分类Dev

Eclipse插件开发配置

来自分类Dev

用于Eclipse的Google插件-Eclipse无法启动

来自分类Dev

Eclipse插件中的Lucene NoSuchMethodError

来自分类Dev

eclipse插件开发中的产品配置

来自分类Dev

Eclipse插件:启动后立即运行代码

来自分类Dev

安装插件后,Eclipse Mars无法启动

来自分类Dev

Eclipse命令关闭/启动我的插件

来自分类Dev

Eclipse插件更新时更新配置

来自分类Dev

TFS 2015 eclipse 插件通知配置

来自分类Dev

在subclipse(eclipse插件)中禁用密码功能,以摆脱Ubuntu上的“不支持的密码”对话框

来自分类Dev

eclipse插件项目的依赖项列表

来自分类Dev

Eclipse Gradle插件“无法获取类型的模型”

来自分类Dev

如何获取JavaDoc for Eclipse插件开发?

来自分类Dev

如何从Eclipse插件获取资源路径

来自分类Dev

Eclipse插件:获取工作集的内容

来自分类Dev

如何编写类似于现有的“查找/替换”对话框的eclipse插件

来自分类Dev

用于自定义对话框的Eclipse插件设置图像图标

来自分类Dev

Eclipse插件中的产品ID是什么?

来自分类Dev

在Eclipse Luna中安装spring插件

来自分类Dev

如何注销Eclipse中的TFS插件?

来自分类Dev

如何在Eclipse中卸载插件?

来自分类Dev

无法在Eclipse 4.4中安装Google插件

来自分类Dev

无法在Eclipse中运行sonarqube插件

来自分类Dev

在基于Eclipse插件的环境中运行Hibernate