Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Insert javadoc comments ...
Insert javadoc comments ... [message #110637] Fri, 21 October 2005 11:09 Go to next message
Eclipse UserFriend
Originally posted by: konrad.my-rho.de

Hi,

I want to insert javadoc comments half-automatic in my code ... by
selecting a function and let add the javadoc body for it automatic.

If I use Source->Add Comment Eclipse creates not realy javadoc:

/* (non-Javadoc)
* @see
org.eclipse.swt.widgets.Layout#computeSize(org.eclipse.swt.w idgets.Composite,
int, int, boolean)
*/

I want an automatic list of used parameters i.e. or a field @return ...

How can I customize these javadoc comments? And I read very often
"Source->Add Javadoc Comment" is the solution. But my Eclipse 3.1
doesn't have this menu entry :-(

Many Thanks
Re: Insert javadoc comments ... [message #110674 is a reply to message #110637] Fri, 21 October 2005 11:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hendrik_maryns.despammed.com

Konrad Mühler schreef:
> Hi,
>
> I want to insert javadoc comments half-automatic in my code ... by
> selecting a function and let add the javadoc body for it automatic.
>
> If I use Source->Add Comment Eclipse creates not realy javadoc:
>
> /* (non-Javadoc)
> * @see
> org.eclipse.swt.widgets.Layout#computeSize(org.eclipse.swt.w idgets.Composite,
> int, int, boolean)
> */
>
> I want an automatic list of used parameters i.e. or a field @return ...
>
> How can I customize these javadoc comments? And I read very often
> "Source->Add Javadoc Comment" is the solution. But my Eclipse 3.1
> doesn't have this menu entry :-(

I I type Ctrl-Alt-J, I get exactly what you want, and I didn't fiddle
with any options to get that, which means _you_ changed it in the
options somewhere.

H.

--
Hendrik Maryns

==================
www.lieverleven.be
http://aouw.org
Re: Insert javadoc comments ... [message #110686 is a reply to message #110674] Fri, 21 October 2005 12:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: konrad.my-rho.de

> I I type Ctrl-Alt-J, I get exactly what you want, and I didn't fiddle
> with any options to get that, which means _you_ changed it in the
> options somewhere.

It's a blank new installation of eclipse ... so it seems to be the
standard option.
Re: Insert javadoc comments ... [message #110776 is a reply to message #110686] Fri, 21 October 2005 23:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

Konrad Mühler wrote:
>> I I type Ctrl-Alt-J, I get exactly what you want, and I didn't fiddle
>> with any options to get that, which means _you_ changed it in the
>> options somewhere.
>
>
> It's a blank new installation of eclipse ... so it seems to be the
> standard option.


It is Alt+Shift+J
If the cursor is on a line of a method, it inserts Javadoc for the
method. Otherwise it inserts Javadoc for the class.

By the way, this is all easily findable in the Keys preferences under
the Source category. Or hit Ctrl+Shift+L to see a "pop-up Keys help."

HTH,
Eric
Re: Insert javadoc comments ... [message #112320 is a reply to message #110637] Wed, 26 October 2005 16:42 Go to previous message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
By default Alt+Shift+J inserts the non-javadoc comment you mention for
inherited methods. If you want that differently, you can modify the
template for inherited methods on the 'Java > Code Style > Code
Templates' preference page.

HTH, tom

Konrad Mühler wrote:
> Hi,
>
> I want to insert javadoc comments half-automatic in my code ... by
> selecting a function and let add the javadoc body for it automatic.
>
> If I use Source->Add Comment Eclipse creates not realy javadoc:
>
> /* (non-Javadoc)
> * @see
> org.eclipse.swt.widgets.Layout#computeSize(org.eclipse.swt.w idgets.Composite,
> int, int, boolean)
> */
>
> I want an automatic list of used parameters i.e. or a field @return ...
>
> How can I customize these javadoc comments? And I read very often
> "Source->Add Javadoc Comment" is the solution. But my Eclipse 3.1
> doesn't have this menu entry :-(
>
> Many Thanks
Previous Topic:Import project into workspace ...
Next Topic:Collapse all ...
Goto Forum:
  


Current Time: Fri Apr 19 18:45:12 GMT 2024

Powered by FUDForum. Page generated in 0.07933 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top