2010-02-23 60 views

回答

5

你可以得到一些提示Eclipse的文章:

We Have Lift-off: The Launching Framework in Eclipse

声明一个启动配置类型

在创造我们的小应用程序启动器声明配置类型的第一步,如我们插件的plugin.xml文件中的以下XML代码片段所示:
非UI声明

<extension point="org.eclipse.debug.core.launchConfigurationTypes"> 
    <launchConfigurationType 
     name="Java Applet" 
     delegate="org.eclipse.jdt.internal.launching.JavaAppletLaunchConfigurationDelegate" 
     modes="run, debug"    
     id="org.eclipse.jdt.launching.javaApplet">   
    </launchConfigurationType> 
</extension> 

这个声明的最重要的部分是委托属性指定实现该接口org.eclipse.debug.core.model.ILaunchConfigurationDelegate类的完全限定名称。
委托是启动器的大脑,并实现启动指定配置的launch()方法。

+0

有没有办法从Eclipse UI做到这一点? – 2015-02-24 18:07:06

+0

@notfed也许,但我没有检查与最近的Eclipse(这个答案是五岁) – VonC 2015-02-24 18:10:23

相关问题