facebook

[Closed] Can a new methd be created with @param,@return etc?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #272733 Reply

    calsonli
    Member

    Hi all,

    I would like to know when creating a new method in EJB class, or normal Java class, is there any quick method to insert @param, @return for later Javadoc generation? Currently, I have to type @param, @return etc myself.

    Thanks,
    Calson

    #272767 Reply

    Riyad Kalla
    Member

    Calson,
    You can adjust how these artifacts are generated under Window > Prefs > Java > Code Style > Code Templates

    #272849 Reply

    calsonli
    Member

    Thank you Riyad, after doing this, it needs to right-click the mouse on the method and select “source->generate element comment”

    #272874 Reply

    Riyad Kalla
    Member

    Very cool, glad it helped.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Can a new methd be created with @param,@return etc?

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