Utökningsmallar

ID:
org.eclipse.pde.ui.templates

Sedan:
2.0

Beskrivning:
Utökningspunkten registrerar innehållsmallar för projekt för insticksprogram som används för att generera kod för de nya utökningarna. Mallar används i två sammanhang:

Konfigurationsmärkord:

<!ELEMENT extension (template+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT template EMPTY>

<!ATTLIST template

id             CDATA #REQUIRED

name           CDATA #REQUIRED

icon           CDATA #IMPLIED

class          CDATA #REQUIRED

contributingId CDATA #REQUIRED

>


Exempel:
Följande är ett exempel på mallregistreringen:


   <extension
         point="org.eclipse.pde.ui.templates">
<template
            contributingId="org.eclipse.ui.actionSets"
            name="XYZ Action Set Generator"
   class="com.example.xyz.XYZActionSetTemplate"
            id="com.example.xyz.ActionSetTemplate">
      </template>
    </extension>

API-information:
Varje mall måste ange en klass som implementerar gränssnittet org.eclipse.pde.ui.templates.ITemplateSection. Abstrakta klasser som implementerar gränssnittet och kan utökas är dock tillgängliga.

Medföljande implementation:
UIt för PDE lägger till ett antal mallar som skapar utökningar för de populäraste utökningspunkterna, t.ex. redigerare, vyer, inställningar osv.


Copyright (c) 2004 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.