简体   繁体   English

Eclipse启动现有的启动配置

[英]Eclipse launch existing launch-configuration

So i am writing an eclipse plugin, which adds a custom-launch action to the toolbar. 所以我正在编写一个eclipse插件,它会在工具栏中添加一个自定义启动操作。 It extends AbstractLaunchToolbarAction , thus it also has that dropdown menu with launch history and so on. 它扩展了AbstractLaunchToolbarAction,因此它还具有启动历史记录等下拉菜单。 This menue is filled up with actions, containing the lauch-configurations. 这个menue充满了包含lauch-configurations的动作。

At this point, when i open dropdown menu and select one launch configuration from the history, it works fine and runs the configuration. 此时,当我打开下拉菜单并从历史记录中选择一个启动配置时,它运行正常并运行配置。

However, my aim would be to alter this behaivor, to do something more. 但是,我的目标是改变这种行为,做更多的事情。 My problem is that i cannot find the place where the launch configuration from the menu is processed, thus i cannot do anything with it... So far i just create the menue by calling the fillMenu(Menu m) 我的问题是,我无法找到处理菜单启动配置的地方,因此我无法用它做任何事情......到目前为止,我只是通过调用fillMenu创建菜单(菜单m)

So my question is, how (in code) does eclipse proccess the exceution of the history launch-configuration? 所以我的问题是,(在代码中)如何删除历史启动配置的优势? Where does the actual launching take place. 实际发射在哪里进行。

想出来......菜单由Action元素组成,它们有方法'run'...当单击Action时会调用此方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM