<!ELEMENT extension (target+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT target (description?)>
<!ATTLIST target
id CDATA #REQUIRED
name CDATA #REQUIRED
definition CDATA #REQUIRED>
<!ELEMENT description (#PCDATA)>
此目标的人类可读描述。
targets
扩展的一个示例:
在以上示例中,目标的名称和标识是在 plugin.xml 中声明的,但其内容存储在提供插件的<extension point =
"org.eclipse.pde.core.targets"
>
<target id=
"org.eclipse.pde.core.rcpTarget"
name=
"Eclipse RCP"
path=
"targets/rcp.target"
/>
</extension>
targets/rcp.target
中。org.eclipse.pde.core
插件提供了两个扩展。
Copyright (c) 2006 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.