core/com.nokia.carbide.templatewizard/plugin.xml
author cawthron
Mon, 29 Jun 2009 16:05:31 -0500
branchRCL_2_0
changeset 320 591a42081283
parent 2 d760517a8095
permissions -rw-r--r--
change version from 2.0 to 2.0.4 on carbidehelp.nokia.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
cawthron
parents:
diff changeset
     2
<?eclipse version="3.0"?>
cawthron
parents:
diff changeset
     3
cawthron
parents:
diff changeset
     4
<!--
cawthron
parents:
diff changeset
     5
 <copyright>
cawthron
parents:
diff changeset
     6
 </copyright>
cawthron
parents:
diff changeset
     7
cawthron
parents:
diff changeset
     8
 $Id: plugin.xml,v 1.3 2009/02/17 20:23:17 tkelly Exp $
cawthron
parents:
diff changeset
     9
-->
cawthron
parents:
diff changeset
    10
cawthron
parents:
diff changeset
    11
<plugin>
cawthron
parents:
diff changeset
    12
   <extension-point id="wizardTemplate" name="WizardTemplate" schema="schema/wizardTemplate.exsd"/>
cawthron
parents:
diff changeset
    13
   <extension-point id="templateProcesses" name="Template Processes" schema="schema/templateProcesses.exsd"/>
cawthron
parents:
diff changeset
    14
cawthron
parents:
diff changeset
    15
  <extension point="org.eclipse.emf.ecore.generated_package">
cawthron
parents:
diff changeset
    16
    <package 
cawthron
parents:
diff changeset
    17
       uri = "platform:/resource/com.nokia.carbide.templatewizard/schema/template.xsd" 
cawthron
parents:
diff changeset
    18
       class = "com.nokia.carbide.internal.template.gen.Template.TemplatePackage"
cawthron
parents:
diff changeset
    19
       genModel = "schema/template.genmodel" /> 
cawthron
parents:
diff changeset
    20
  </extension>
cawthron
parents:
diff changeset
    21
cawthron
parents:
diff changeset
    22
  <extension point="org.eclipse.emf.ecore.extension_parser">
cawthron
parents:
diff changeset
    23
    <parser 
cawthron
parents:
diff changeset
    24
       type="template" 
cawthron
parents:
diff changeset
    25
       class="com.nokia.carbide.internal.template.gen.Template.util.TemplateResourceFactoryImpl" />
cawthron
parents:
diff changeset
    26
  </extension>
cawthron
parents:
diff changeset
    27
  <extension
cawthron
parents:
diff changeset
    28
        point="com.nokia.carbide.templatewizard.templateProcesses">
cawthron
parents:
diff changeset
    29
     <templateProcess
cawthron
parents:
diff changeset
    30
           class="com.nokia.carbide.templatewizard.processes.CopyFiles"
cawthron
parents:
diff changeset
    31
           id="com.nokia.carbide.templatewizard.CopyFiles">
cawthron
parents:
diff changeset
    32
        <description>
cawthron
parents:
diff changeset
    33
Copies files from the template to the project, optionally template-expanding contents.
cawthron
parents:
diff changeset
    34
Parameters:
cawthron
parents:
diff changeset
    35
cawthron
parents:
diff changeset
    36
parameter project (required): name of the project to copy into
cawthron
parents:
diff changeset
    37
* attribute projectName (required): project name
cawthron
parents:
diff changeset
    38
cawthron
parents:
diff changeset
    39
parameter tree (sequence, 0+): a tree of files to copy
cawthron
parents:
diff changeset
    40
* attribute sourcePath (required): template.xml-relative folder for source content
cawthron
parents:
diff changeset
    41
* attribute targetPath (required): project-relative folder for target content (does NOT use basename of sourcePath)
cawthron
parents:
diff changeset
    42
* attribute subsitute (optional, default true): whether this file is parameterized and needs to be variable-substituted from variables in the template&apos;s value map.  
cawthron
parents:
diff changeset
    43
When substituting, unrecognized variables are left intact.
cawthron
parents:
diff changeset
    44
Optionally, any of three operators can be used to automatically uppercase, lowercase and titlecase (uppercase only the first character) the value prior to substitution. The syntax for using the operators is $(id$upper), $(id$lower) or $(id$title).
cawthron
parents:
diff changeset
    45
* attribute overwrite (optional, default false): if true, allows overwriting existing files without error.
cawthron
parents:
diff changeset
    46
        </description>
cawthron
parents:
diff changeset
    47
     </templateProcess>
cawthron
parents:
diff changeset
    48
     <templateProcess
cawthron
parents:
diff changeset
    49
           class="com.nokia.carbide.templatewizard.processes.CopyFileTree"
cawthron
parents:
diff changeset
    50
           id="com.nokia.carbide.templatewizard.CopyFileTree">
cawthron
parents:
diff changeset
    51
        <description>
cawthron
parents:
diff changeset
    52
Copies a tree of files from one location to another, optionally template-expanding contents along the way. The leaf of
cawthron
parents:
diff changeset
    53
source is NOT placed into the target, so repeat the leaf directory in
cawthron
parents:
diff changeset
    54
targetPath if required.
cawthron
parents:
diff changeset
    55
cawthron
parents:
diff changeset
    56
Syntax:
cawthron
parents:
diff changeset
    57
cawthron
parents:
diff changeset
    58
parameter project (required): name of the project to copy into
cawthron
parents:
diff changeset
    59
* attribute projectName (required): project name
cawthron
parents:
diff changeset
    60
cawthron
parents:
diff changeset
    61
parameter tree (sequence, 0+): a tree of files to copy
cawthron
parents:
diff changeset
    62
* attribute sourcePath (required): template.xml-relative folder for source content
cawthron
parents:
diff changeset
    63
* attribute targetPath (required): project-relative folder for target content (does NOT use basename of sourcePath)
cawthron
parents:
diff changeset
    64
* attribute subsitute (optional): whether this file is parameterized and needs to be variable-substituted from variables in the template&apos;s value map (defaults to false, unlike CopyFiles).  
cawthron
parents:
diff changeset
    65
When substituting, unrecognized variables are left intact.
cawthron
parents:
diff changeset
    66
Optionally, any of three operators can be used to automatically uppercase, lowercase and titlecase (uppercase only the first character) the value prior to substitution. The syntax for using the operators is $(id$upper), $(id$lower) or $(id$title).
cawthron
parents:
diff changeset
    67
cawthron
parents:
diff changeset
    68
* attribute excludedFileOrDirectoryPattern (optional):  a regular expression used to filter out files or directories (leaf name only).  If not specified, CVS and .svn directories are the default filter.
cawthron
parents:
diff changeset
    69
cawthron
parents:
diff changeset
    70
* attribute noSubstituteFileOrDirectoryPattern (optional): a regular expression used to exclude files or directories from variable substitution (leaf name only).  If a directory matches, all its files and subdirectories are excluded from substitution.  If not specified, all files are substituted if &apos;substitute=true&apos;.
cawthron
parents:
diff changeset
    71
        </description>
cawthron
parents:
diff changeset
    72
     </templateProcess>
cawthron
parents:
diff changeset
    73
     
cawthron
parents:
diff changeset
    74
	<templateProcess
cawthron
parents:
diff changeset
    75
           class="com.nokia.carbide.templatewizard.processes.CreateFolders"
cawthron
parents:
diff changeset
    76
           id="com.nokia.carbide.templatewizard.CreateFolders">
cawthron
parents:
diff changeset
    77
        <description>
cawthron
parents:
diff changeset
    78
Creates folders in the project.
cawthron
parents:
diff changeset
    79
cawthron
parents:
diff changeset
    80
Syntax:
cawthron
parents:
diff changeset
    81
cawthron
parents:
diff changeset
    82
parameter project (required): name of the project to copy into
cawthron
parents:
diff changeset
    83
* attribute projectName (required): project name
cawthron
parents:
diff changeset
    84
cawthron
parents:
diff changeset
    85
parameter folder (sequence, 0+): folder to create
cawthron
parents:
diff changeset
    86
* attribute path (required): project-relative folder to create.  This can create multiple levels of folders in one shot (e.g. src/my/folder).
cawthron
parents:
diff changeset
    87
        </description>
cawthron
parents:
diff changeset
    88
     </templateProcess>    
cawthron
parents:
diff changeset
    89
      
cawthron
parents:
diff changeset
    90
	<templateProcess
cawthron
parents:
diff changeset
    91
           class="com.nokia.carbide.templatewizard.processes.CreateTemplateVariable"
cawthron
parents:
diff changeset
    92
           id="com.nokia.carbide.templatewizard.DefineTemplateVariable">
cawthron
parents:
diff changeset
    93
        <description>
cawthron
parents:
diff changeset
    94
Defines template variables for use by other processes.  This augments the template's variable map for use by other processes
cawthron
parents:
diff changeset
    95
(such as template substitution by CopyFiles).
cawthron
parents:
diff changeset
    96
cawthron
parents:
diff changeset
    97
Syntax:
cawthron
parents:
diff changeset
    98
cawthron
parents:
diff changeset
    99
parameter variable (sequence, 0+): a variable to define
cawthron
parents:
diff changeset
   100
* attribute variableName (required): variable name
cawthron
parents:
diff changeset
   101
* attribute value (required): variable value
cawthron
parents:
diff changeset
   102
        </description>
cawthron
parents:
diff changeset
   103
     </templateProcess>     
cawthron
parents:
diff changeset
   104
     
cawthron
parents:
diff changeset
   105
	<templateProcess
cawthron
parents:
diff changeset
   106
           class="com.nokia.carbide.templatewizard.processes.OpenFileInEditor"
cawthron
parents:
diff changeset
   107
           id="com.nokia.carbide.templatewizard.OpenFileInEditor">
cawthron
parents:
diff changeset
   108
        <description>
cawthron
parents:
diff changeset
   109
Opens the specified file in an editor.
cawthron
parents:
diff changeset
   110
 
cawthron
parents:
diff changeset
   111
Syntax:
cawthron
parents:
diff changeset
   112
cawthron
parents:
diff changeset
   113
parameter project (required): the project and file information
cawthron
parents:
diff changeset
   114
* attribute projectName (required): project in which to find the file
cawthron
parents:
diff changeset
   115
* attribute fileName (required): path in project to the file to open
cawthron
parents:
diff changeset
   116
* attribute editorId (optional): the specific Eclipse editor used to open the file; if the id is not specified or
cawthron
parents:
diff changeset
   117
the editor is not registered, a default editor is used
cawthron
parents:
diff changeset
   118
        </description>
cawthron
parents:
diff changeset
   119
     </templateProcess>     
cawthron
parents:
diff changeset
   120
  </extension>
cawthron
parents:
diff changeset
   121
cawthron
parents:
diff changeset
   122
</plugin>
cawthron
parents:
diff changeset
   123