Simple Template How To
This help page will show you how to create your own template for the Aston Plugin.
If you want to build complex templates please read
this (Java classes).
Three steps to respect:
- Create your template file
- Template files singularities:
- JSP Template files:
- If you write: <aw:title/>, the file name will appear
- HTML Template files:
- If you write: <aw:title/>, the file name will appear
- If you write: <aw:doctype/>, the doctype will appear
- HTML Template files for applet:
- If you write: <aw:appletCodeBase/> value for codebase attribut will appear
- If you write: <aw:appletName/> value for name attribut will appear
- If you write: <aw:appletClass/> value for class attribut will appear
- If you write: <aw:appletWidth/> value for width attribut will appear
- If you write: <aw:appletHeight/> value for height attribut will appear
- Your templates can have any extension
- All lignes that start a # is considered as comments and will not appear
- Change/Edit the templates.properties file that is located in the directory [InstallEclipse]/plugins/com.aston.plugins
- Add an entry for your template
- JSP Template:
jsp.template.3=fileName
jsp.template.3.label=Label for Eclipse
- HTML Template:
html.template.3=fileName
html.template.3.label=Label for Eclipse
- HTML for applet:
applethtml.template.2=fileName
applethtml.template.2.label=Label for Eclipse
- WARNING : in all case numbers should be in order
- 'fileName' is the complete name (with its extension) of your template file
- 'Label for Eclipse' is what Eclipse will show you
- If Eclipse is started you will need to stop and re-start it.