Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Autocomplete Javadoc comments ?
Autocomplete Javadoc comments ? [message #61361] Wed, 18 June 2003 22:22 Go to next message
Eclipse UserFriend
Originally posted by: cybe.asshole.com

is there a plugin or command to auto-complete Javadocs comments for
methods in a java class , like in Jbuilder, Netbeans, Idea ?

thanks !
Re: Autocomplete Javadoc comments ? [message #61433 is a reply to message #61361] Thu, 19 June 2003 06:55 Go to previous messageGo to next message
Michael Taege is currently offline Michael TaegeFriend
Messages: 29
Registered: July 2009
Junior Member
Hello,

write the method signature


public void setSomething(Object something){
}


write the beginning of the JavaDoc '/**' before the methods signature


/**
public void setSomething(Object something){
}


and press CTRL + Enter and you will get the JavaDoc (the blank line is a
little bit annoying)


/**
*
* Method setSomething()
* @param something
*/
public void setSomething(Object something){

}

This works also for return types, throws-clauses.


Michael

Am Wed, 18 Jun 2003 19:22:13 -0300 hat cyber <cybe@asshole.com>
geschrieben:

> is there a plugin or command to auto-complete Javadocs comments for
> methods in a java class , like in Jbuilder, Netbeans, Idea ?
>
> thanks !
>



--
-----------------------------------
Dipl. Ing. Michael Täge
Bauschlotterstr. 36
75177 Pforzheim
Fon: 07231 51278
Mobil: 0171 8067809
m-taege@t-online.de
Re: Autocomplete Javadoc comments ? [message #61724 is a reply to message #61433] Thu, 19 June 2003 13:06 Go to previous messageGo to next message
Martin Aeschlimann is currently offline Martin AeschlimannFriend
Messages: 71
Registered: July 2009
Member
There should not be a blank line. Did you check Preferences > Java >
Code Generation -> Code and Comments > Method - Comment if you didn't
add a new line yourself?

Martin

Michael Taege wrote:
>
> Hello,
>
> write the method signature
>
>
> public void setSomething(Object something){
> }
>
>
> write the beginning of the JavaDoc '/**' before the methods signature
>
>
> /**
> public void setSomething(Object something){
> }
>
>
> and press CTRL + Enter and you will get the JavaDoc (the blank line is a
> little bit annoying)
>
>
> /**
> *
> * Method setSomething()
> * @param something
> */
> public void setSomething(Object something){
>
> }
>
> This works also for return types, throws-clauses.
>
>
> Michael
>
> Am Wed, 18 Jun 2003 19:22:13 -0300 hat cyber <cybe@asshole.com>
> geschrieben:
>
>> is there a plugin or command to auto-complete Javadocs comments for
>> methods in a java class , like in Jbuilder, Netbeans, Idea ?
>>
>> thanks !
>>
>
>
>
Re: Autocomplete Javadoc comments ? [message #61748 is a reply to message #61724] Thu, 19 June 2003 13:15 Go to previous messageGo to next message
Michael Taege is currently offline Michael TaegeFriend
Messages: 29
Registered: July 2009
Junior Member
Hello Martin,

I don't think so. Here's my entry from the preferences:

/**
* Method ${enclosing_method}()
* ${tags}
*/

Before I'm pressing the CTRL+Enter command the cursor is directly after the
last '*' from the start of the JavaDoc that's correct too, isn't it?

Michael

Am Thu, 19 Jun 2003 15:06:49 +0200 hat Martin Aeschlimann
<martin_aeschlimann@ch.ibm.com> geschrieben:

> There should not be a blank line. Did you check Preferences > Java > Code
> Generation -> Code and Comments > Method - Comment if you didn't add a
> new line yourself?
>
> Martin
>
> Michael Taege wrote:
>>
>> Hello,
>>
>> write the method signature
>>
>>
>> public void setSomething(Object something){
>> }
>>
>>
>> write the beginning of the JavaDoc '/**' before the methods signature
>>
>>
>> /**
>> public void setSomething(Object something){
>> }
>>
>>
>> and press CTRL + Enter and you will get the JavaDoc (the blank line is a
>> little bit annoying)
>>
>>
>> /**
>> *
>> * Method setSomething()
>> * @param something
>> */
>> public void setSomething(Object something){
>> }
>>
>> This works also for return types, throws-clauses.
>>
>>
>> Michael
>>
>> Am Wed, 18 Jun 2003 19:22:13 -0300 hat cyber <cybe@asshole.com>
>> geschrieben:
>>
>>> is there a plugin or command to auto-complete Javadocs comments for
>>> methods in a java class , like in Jbuilder, Netbeans, Idea ?
>>>
>>> thanks !
>>>
>>
>>
>>
>
>



--
-----------------------------------
Dipl. Ing. Michael Täge
Bauschlotterstr. 36
75177 Pforzheim
Fon: 07231 51278
Mobil: 0171 8067809
m-taege@t-online.de
Re: Autocomplete Javadoc comments ? [message #61772 is a reply to message #61748] Thu, 19 June 2003 13:37 Go to previous messageGo to next message
Michael Taege is currently offline Michael TaegeFriend
Messages: 29
Registered: July 2009
Junior Member
oha, context-menu->Source->Add JavaDoc Comment works fine.
I've also tried to bound 'Add JavaDoc Comment' to CTRL+J (originally
Texteditor: Incremental Find),
which also works fine. But not using CTRL+Enter.

Michael

Am Thu, 19 Jun 2003 15:15:37 +0200 hat Michael Taege <m-taege@t-online.de>
geschrieben:

> Hello Martin,
>
> I don't think so. Here's my entry from the preferences:
>
> /**
> * Method ${enclosing_method}()
> * ${tags}
> */
>
> Before I'm pressing the CTRL+Enter command the cursor is directly after
> the last '*' from the start of the JavaDoc that's correct too, isn't it?
>
> Michael
>
> Am Thu, 19 Jun 2003 15:06:49 +0200 hat Martin Aeschlimann
> <martin_aeschlimann@ch.ibm.com> geschrieben:
>
>> There should not be a blank line. Did you check Preferences > Java >
>> Code Generation -> Code and Comments > Method - Comment if you didn't
>> add a new line yourself?
>>
>> Martin
>>
>> Michael Taege wrote:
>>>
>>> Hello,
>>>
>>> write the method signature
>>>
>>>
>>> public void setSomething(Object something){
>>> }
>>>
>>>
>>> write the beginning of the JavaDoc '/**' before the methods signature
>>>
>>>
>>> /**
>>> public void setSomething(Object something){
>>> }
>>>
>>>
>>> and press CTRL + Enter and you will get the JavaDoc (the blank line is
>>> a little bit annoying)
>>>
>>>
>>> /**
>>> *
>>> * Method setSomething()
>>> * @param something
>>> */
>>> public void setSomething(Object something){
>>> }
>>>
>>> This works also for return types, throws-clauses.
>>>
>>>
>>> Michael
>>>
>>> Am Wed, 18 Jun 2003 19:22:13 -0300 hat cyber <cybe@asshole.com>
>>> geschrieben:
>>>
>>>> is there a plugin or command to auto-complete Javadocs comments for
>>>> methods in a java class , like in Jbuilder, Netbeans, Idea ?
>>>>
>>>> thanks !
>>>>
>>>
>>>
>>>
>>
>>
>
>
>



--
-----------------------------------
Dipl. Ing. Michael Täge
Bauschlotterstr. 36
75177 Pforzheim
Fon: 07231 51278
Mobil: 0171 8067809
m-taege@t-online.de
Re: Autocomplete Javadoc comments ? [message #68081 is a reply to message #61772] Thu, 26 June 2003 13:19 Go to previous message
Martin Aeschlimann is currently offline Martin AeschlimannFriend
Messages: 71
Registered: July 2009
Member
A normal enter should be enough. I can't reproduce this with CTRL + Enter

/**< enter here

Michael Taege wrote:
>
> oha, context-menu->Source->Add JavaDoc Comment works fine.
> I've also tried to bound 'Add JavaDoc Comment' to CTRL+J (originally
> Texteditor: Incremental Find),
> which also works fine. But not using CTRL+Enter.
>
> Michael
>
> Am Thu, 19 Jun 2003 15:15:37 +0200 hat Michael Taege
> <m-taege@t-online.de> geschrieben:
>
>> Hello Martin,
>>
>> I don't think so. Here's my entry from the preferences:
>>
>> /**
>> * Method ${enclosing_method}()
>> * ${tags}
>> */
>>
>> Before I'm pressing the CTRL+Enter command the cursor is directly
>> after the last '*' from the start of the JavaDoc that's correct too,
>> isn't it?
>>
>> Michael
>>
>> Am Thu, 19 Jun 2003 15:06:49 +0200 hat Martin Aeschlimann
>> <martin_aeschlimann@ch.ibm.com> geschrieben:
>>
>>> There should not be a blank line. Did you check Preferences > Java >
>>> Code Generation -> Code and Comments > Method - Comment if you didn't
>>> add a new line yourself?
>>>
>>> Martin
>>>
>>> Michael Taege wrote:
>>>
>>>>
>>>> Hello,
>>>>
>>>> write the method signature
>>>>
>>>>
>>>> public void setSomething(Object something){
>>>> }
>>>>
>>>>
>>>> write the beginning of the JavaDoc '/**' before the methods signature
>>>>
>>>>
>>>> /**
>>>> public void setSomething(Object something){
>>>> }
>>>>
>>>>
>>>> and press CTRL + Enter and you will get the JavaDoc (the blank line
>>>> is a little bit annoying)
>>>>
>>>>
>>>> /**
>>>> *
>>>> * Method setSomething()
>>>> * @param something
>>>> */
>>>> public void setSomething(Object something){
>>>> }
>>>>
>>>> This works also for return types, throws-clauses.
>>>>
>>>>
>>>> Michael
>>>>
>>>> Am Wed, 18 Jun 2003 19:22:13 -0300 hat cyber <cybe@asshole.com>
>>>> geschrieben:
>>>>
>>>>> is there a plugin or command to auto-complete Javadocs comments for
>>>>> methods in a java class , like in Jbuilder, Netbeans, Idea ?
>>>>>
>>>>> thanks !
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
>
Previous Topic:Indenting simple if statements
Next Topic:Launch Configuration - Debug
Goto Forum:
  


Current Time: Sat Aug 17 22:30:39 GMT 2024

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

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

Back to the top