Målplatser

Identifierare (ID):
org.eclipse.pde.core.targetLocations

Sedan:
3.8

Beskrivning:
Utökningspunkten gör det möjligt för klienter att bidra med sina egna implementationer av målplatser, vilket tillhandahåller insticksprogram och annat innehåll till målplattformen.

Konfigurationsmärkordsuppsättning:

<!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)

>


Exempel:
Följande är exempel på targetLocations-utökningen:


   <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>
I exemplet ovan deklareras namn och ID för målet i plugin.xml, men fabriken org.eclipse.pde.core.CustomLocationFactory som används för att skapa målplatsen kommer från det bidragande insticksprogrammet.

API-information:
Tillägg måste tillhandahålla en fabrik som implementerar ITargetLocationFactory. Fabriken kommer att användas för att instantiera ITargetLocation-objekt. För att visa en implementation i PDE-användargränssnittet måste klienterna tillhandahålla en adapterfabrik som anpassar sin ITargetLocation-implementation till följande: IWizardNode: tillhandahåller ett IWizardNode-objekt till en guide som skapar nya platser av denna typ ILabelProvider: tillhandahåller etikettext och bild för platsimplementation i användargränssnittet Mer information finns i 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.