- This topic has 4 replies, 3 voices, and was last updated 20 years, 8 months ago by
Riyad Kalla.
-
AuthorPosts
-
navisMemberHi,
I have been able to modify the templates as per my need for EJBs. As most of java files are present as wizards/templates/*.java
When i create StrutsForm / StrustAction, MyEclipse generates code for me. I wish to change the code that’s being generated. How can i change that? Where are the templates stored for that?
TIA
Navjot Singh3.0rc1 + 3.08 beta (Win2K)
Riyad KallaMember<myeclipse install>\eclipse\plugins\com.genuitec.eclipse.wizards_2.7.101\Templates
please adjust the “2.7.101” version accordingly for your install.
navisMemberModifying the EJB classes in this directory worked for me and
Yes, i did modify the StrutsActionForm.java in there. But i don’t think the generated file strikes any resemblence to the template in this directory.
I mean in templates/StrutsActionForm.java, there’s nothing called UnsupportedOperationException but in generated file the validate and reset methods throws these exceptions.
Any clues?
and what do you mean chaging version? should i convert that to 3.08.00?
TIA
support-michaelKeymasterThe Struts code generation templates are located in the com.genuitec.eclipse.cross.easystruts.eclipse_X.7.101. In my opinion these templates are not easily modifiable (xsd).
We are consolidating ME’s various code generation mechanisms to use a single template-based mechanism. Currently we are working on a Velocity-approach that will allow user managed templates. This capability will be sometime in coming as we plan to first replace the internal implementation then surface it for general use.
Riyad KallaMembernavis to clarify what I meant, is that when I provided my path from my system I had the version “2.7.101” in my path, and I was saying that before you go looking for the templates on your system, adjust the version string for whatever version of ME you have installed on your system, say “3.7.101” if you are running Eclipse 3.0.
-
AuthorPosts