- This topic has 10 replies, 6 voices, and was last updated 20 years, 7 months ago by Riyad Kalla.
-
AuthorPosts
-
cfrersMemberHi Riyad:
This may be an Eclipse rather than a MyEclipse question. We would like to configure how the template
jsp page should look like since we need to use and include our own project taglib and stylesheets.
Right now we simply replace the contents of a new jsp page with our own template but we need to do this every time.
Is there a more permanent way of predefining this in Eclipse/ME?Claudia
Riyad KallaMemberHi Claudia,
Yes there is a way for you to do this, and in a future release we look to make editing the templates part of MyEclipse. Right now its a more manual Find/Replace process.Go to this location on your computer:
<myeclipse install directory>\eclipse\plugins\com.genuitec.eclipse.wizards_2.7.1\TemplatesThe names of the files are pretty self explanitory, but you can do some trial-and-error to find out which ones you want to replace.
Let us know if you have anymore questions.
cfrersMember@support-rkalla wrote:
Hi Claudia,
Yes there is a way for you to do this, and in a future release we look to make editing the templates part of MyEclipse. Right now its a more manual Find/Replace process.Go to this location on your computer:
<myeclipse install directory>\eclipse\plugins\com.genuitec.eclipse.wizards_2.7.1\TemplatesThe names of the files are pretty self explanitory, but you can do some trial-and-error to find out which ones you want to replace.
Let us know if you have anymore questions.
Hi Riyad:
This is great and pretty straightforward if we want to replace one of the existing templates. However, we need to have a list of templates to chooose from and we cannot find where ME defines this list so that we can simply add our own instead of doing a replace. Even if we can’t do this we are very pleased to be able to define our own templates. Where is the list in the JSP wizard (Template to use) defined?
Claudia
Riyad KallaMemberI’ll ask Michael to weigh in on this, as I am not sure.
support-michaelKeymasterHere’s the process:
0) Create a new folder named:<myeclipse install>/eclipse/plugins/com.genuitec.eclipse.wizards/UserTemplates/.
1) Create a new template file and store it in the new UserTemplates folder. Use any existing template from the <myeclipse install>/eclipse/plugins/com.genuitec.eclipse.wizards/Templates/ folder as a guide.
2) Add the new template to the template registry file, see <myeclipse install>/eclipse/plugins/com.genuitec.eclipse.wizards/templates.properties. Back up this file before making mods.
For example, I add Mike’s new fangled JSP Template to the registry as follows:
jsp.template.5=UserTemplates/MyNewSuperJSPTemplate.jsp
jsp.template.5.label=Best template everNote the pattern jsp.template.#. Ensure that all entries that you add/delete are sequential starting at #1.
3) You’ll need to recycle MyEclipse to access the new template.
4) Please note at this time your custom templates and template registry will be overwritten with uninstalls and new MyEclipse installs. We have an open enhancement request for supporting user template libraries that will be addressed in a future release.
Jack GouldMemberHi, Riyan and Michael.
I have no trouble extending the templates.properties to add my own custom templates. My question is this:
Is there some documentation about what substitutions can be made by the wizard? I am referring to tags such as <aw:author/>
Thanks for your help!
– Jack Gould
Sherwin-Williams
Scott AndersonParticipantJack,
It’s tricky to find (to say the least ;-), but what documentation there is is available at <myeclipse-install-dir>/eclipse/plugins/com.genuitec.eclipse.wizards_<version>/docs/wTemplateComplexFile_en.html
jason poleyMemberI’d love to have customizable jsp templates. (via eclipse not rooting thru the plugins dir)
that would be very helpful.
Riyad KallaMemberI think we are going to try and address this soon, stay tuned.
support-michaelKeymaster
Riyad KallaMemberWow, that was soon 😀
-
AuthorPosts