如何从自定义菜单启动外部工具? [英] How to launch external tool from custom menu?

查看:127
本文介绍了如何从自定义菜单启动外部工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

外部工具配置只是另一种类型的启动配置。

该标识是: org.eclipse.ui.externaltools.ProgramLaunchConfigurationType org.eclipse.ui.externaltools / plugin.xml 。 >
它在中声明 org.eclipse.ui.externaltools.internal.model.IExternalToolConstants



您可以以编程方式创建一个启动配置,启动后再启动终止启动,您可以删除它,以便它不会出现在菜单中。



查看角落文章:




Can I run external program programmatically in Eclipse without configuring as an external tool through Run -> External Tools -> External Tools Configuration ?

解决方案

External tools configuration is just another type of launch configuration.
The id is: org.eclipse.ui.externaltools.ProgramLaunchConfigurationType, as used in org.eclipse.ui.externaltools/plugin.xml.
It is declared in org.eclipse.ui.externaltools.internal.model.IExternalToolConstants

You can programmatically create a launch configuration, launch it and after the termination of the launch, you can delete it, so that it won't appear in the menu.

See the corner articles:

这篇关于如何从自定义菜单启动外部工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆