<!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: Provides a IWizardNode object to supply a wizard for creating new locations of this type
ILabelProvider: Provides label text and image for the location implementation in the UI
For more information, consult ITargetLocation
ลิขสิทธิ์ (c) 2011 IBM Corporation และอื่นๆ
สงวนสิทธิ์ทั้งหมด โปรแกรมนี้และสื่อประกอบที่มาพร้อมกันนี้
พร้อมใช้งานภายใต้เงื่อนไขของ Eclipse Public License v1.0
ที่มาพร้อมกับการแจกจ่ายนี้ และมีอยู่ที่
http://www.eclipse.org/legal/epl-v10.html