ターゲット・ロケーション

識別子:
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>
この例では、ターゲットの名前と ID は plugin.xml で宣言されますが、ターゲット・ロケーションを作成するためのファクトリー org.eclipse.pde.core.CustomLocationFactory は、コントリビュートするプラグインからのものです。

API 情報:
拡張は、ITargetLocationFactory を実装するファクトリーを提供する必要があります。このファクトリーは、ITargetLocation オブジェクトをインスタンス化するために使用されます。 PDE UI で実装を表示するには、クライアントはそれぞれの ITargetLocation 実装を次のものに適応させるアダプター・ファクトリーを提供する必要があります。 IWizardNode: このタイプの新規ロケーションを作成するためのウィザードを提供する IWizardNode オブジェクトを提供します。 ILabelProvider: UI でのロケーション実装のラベル・テキストおよびイメージを提供します。 詳しくは、ITargetLocation を参照してください。


Copyright (c) 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.