如何从自定义菜单启动外部工具? [英] How to launch external tool from custom menu?
问题描述
外部工具配置只是另一种类型的启动配置。
该标识是: 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屋!