目标位置

标识:
org.eclipse.pde.core.targetLocations

起始版本:
3.8

描述:
此扩展点允许客户机添加其自身的目标位置实现,这些实现为目标平台提供了插件和其他内容。

配置标记:

<!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 工厂来自于添加插件。

API 信息:
扩展必须提供用于实现 ITargetLocationFactory 的工厂。该工厂将用于实例化 ITargetLocation 对象。 要在 PDE UI 中显示实现,客户机必须提供一个适配器工厂,此工厂使其 ITargetLocation 实现适应以下各项: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.