<!ELEMENT extension (targetLocation)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
><!ELEMENT targetLocation EMPTY>
<!ATTLIST targetLocation
type CDATA #REQUIRED
locationFactory CDATA #IMPLIED
canUpdate (true | false)
>targetLocations 扩展的示例:
<extension id="org.eclipse.pde.core.customlocation" name="Custom Location" point="org.eclipse.pde.core.targetLocations"> <targetLocation locationFactory="org.eclipse.pde.core.CustomLocationFactory" type="CustomLocation"> </targetLocation> </extension>在以上示例中,目标的名称和标识是在 plugin.xml 中声明的,但是用于创建目标位置的
org.eclipse.pde.core.CustomLocationFactory 工厂来自于添加插件。
IWizardNode:提供 IWizardNode 对象以提供用于创建此类型新位置的向导
ILabelProvider:为 UI 中的位置实现提供标签文本和图像
有关更多信息,请参阅 ITargetLocation
Copyright © 2011 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.