這個延伸點用來登錄將建立新目標位置的目標位置供應者精靈。當使用者試圖從「目標平台喜好設定頁面」或「目標編輯器」中,將外掛程式新增至目標定義時,會列出每一個外掛程式供應者。選取的供應者負責提供要新增目標定義的目標位置。
用戶端可以透過 org.eclipse.pde.core.targetLocations 延伸點,提供自己的目標位置實作。這個延伸點可讓使用者新增自訂位置實作。其他 UI 互動是使用配接器架構來處理(請參閱 org.eclipse.pde.core.target.ITargetDefinition 的文件)。
<!ELEMENT extension (locationProvider+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
><!ELEMENT locationProvider (description?)>
<!ATTLIST locationProvider
id CDATA #REQUIRED
name CDATA #REQUIRED
icon CDATA #IMPLIED
class CDATA #REQUIRED
>org.eclipse.pde.ui.target.ITargetLocationWizard 的 Java 類別的完整名稱。<!ELEMENT description (#PCDATA)>
供應者的可讀說明
下列是延伸點的範例:
<extension point="org.eclipse.pde.ui.targetLocationProvisioners"> <locationProvider class="org.eclipse.example.exampleTargetWizard" icon="icons/obj16/exampleTargetLocation.gif" id="org.eclipse.example.exampleTargetProvisioner" name="%targetLocationProvider.example.name" <description> %targetLocationProvider.example.description </description> </locationProvider> </extension>
org.eclipse.pde.ui.target.ITargetLocationWizard。
PDE 提供內部位置供應者實作,可從更新網站和 p2 儲存庫新增外掛程式。請參閱 org.eclipse.pde.ui.shared.target.InstallableUnitWizard。
Copyright (c) 2011, 2012 IBM Corporation and others.
All rights reserved. 本程式與隨附的資料依照本發行版所隨附的 Elipse Public License 1.0 版條款而提供,可以在以下網址取得:http://www.eclipse.org/legal/epl-v10.html。