<!ELEMENT extension (launcher*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT launcher EMPTY>
<!ATTLIST launcher
id CDATA #REQUIRED
class CDATA #REQUIRED
modes CDATA #REQUIRED
label CDATA #REQUIRED
wizard CDATA #IMPLIED
public (true | false)
description CDATA #IMPLIED
perspective CDATA #IMPLIED
icon CDATA #IMPLIED>
org.eclipse.debug.core.model.ILauncherDelegate
的 Java 类的标准名称。org.eclipse.debug.core.ILaunchManager
中定义的那样。可用其中一种方式或全部两种方式启动启动程序。org.eclipse.debug.ui.ILaunchWizard
的类的标准名称。此属性由调试用户界面使用。启动程序可添加允许用户配置和启动特定属性的向导。true
,则启动程序可通过调试用户界面获得 - 启动程序将表现为缺省启动程序的一个选项,此启动程序创建的启动将出现在启动历史记录中,并且启动程序将可从下拉运行/调试工具栏操作中获得。
在上面的示例中,指定的启动程序同时支持运行和调试方式。在成功启动之后,调试用户界面将切换至 Java 透视图。当 调试用户界面向用户显示要从中选择的启动程序列表时,“示例启动程序”将作为其中一个选项出现,其描述为“启动示例程序”,并且 com.example.launchers.ui.ExampleLaunchWizard 指定的向导将用于配置任何特定于启动的详细信息。<extension point =
"org.eclipse.debug.core.launchers"
>
<launcher id =
"com.example.ExampleLauncher"
class =
"com.example.launchers.ExampleLauncher"
modes =
"run, debug"
label =
"Example Launcher"
wizard =
"com.example.launchers.ui.ExampleLaunchWizard"
public =
"true"
description =
"Launches example programs"
perspective=
"com.example.JavaPerspective"
>
</launcher>
</extension>
Copyright (c) 2000, 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which
accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html