facebook

How to modify StrutsForm template?[Enhancement]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #208066 Reply

    navis
    Member

    Hi,

    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 Singh

    3.0rc1 + 3.08 beta (Win2K)

    #208088 Reply

    Riyad Kalla
    Member

    <myeclipse install>\eclipse\plugins\com.genuitec.eclipse.wizards_2.7.101\Templates

    please adjust the “2.7.101” version accordingly for your install.

    #208138 Reply

    navis
    Member

    Modifying 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

    #208151 Reply

    support-michael
    Keymaster

    The 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.

    #208160 Reply

    Riyad Kalla
    Member

    navis 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.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: How to modify StrutsForm template?[Enhancement]

You must be logged in to post in the forum log in