ตำแหน่งปลายทาง

ตัวบ่งชี้:
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: 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