<!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 は、コントリビュートするプラグインからのものです。
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.