Bug 125321 - [content assist] javadoc @param descriptions history function
Summary: [content assist] javadoc @param descriptions history function
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-26 07:32 EST by Thomas von Haugwitz CLA
Modified: 2006-03-01 08:09 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas von Haugwitz CLA 2006-01-26 07:32:49 EST
Hi,

what about including a "history"-function for javadoc @param comments. one would not have to enter the same comments for the exact same parameters (the names and types would have to be the same) in similar functions and classes all over again. 

e.g.

/**
 *  @param parentCompData
 *            a description for parentCompData
 *  @param childCompData
 *            a description for childCompData
 */
public void someFunction(CompData parentCompData, CompData childCompData)
{
}

now you have another function with parameters using the same types CompData and parameternames parentCompData and childCompData

a history function would now suggest a previously entered comment for parentCompData or take the first available one....


/**
 *  @param parentCompData   a description for parentCompData
 *  @param childCompData    ...
 *
 */
public void someOtherFunction(CompData parentCompData, CompData childCompData)
{
}

what do u think about it ?

greetings

tvh








Also, if one would create a new class which inherits another class, the constructors is always added to the newly created class with a comment like

public class SomeClass
extends SomeOtherClass

/**
 *
 */
 public SomeClass()
 {
     super();
 }

SomeOtherClass contained the following pretty well documented constructor

public class SomeOtherClass
{
    /**
     *  Constructor.
     *
     *  a class to do stuff and some other cool things.
     *  uses a special interface with a whole bunch of
     *  superimportant features
     */
    public SomeOtherClass()
    {
    }

it would be cool if that comment would be added to inherited constructors as well. Also, this comment could be used as a document-template.

public class SomeClass
extends SomeOtherClass
{
    /**
     *  Constructor.
     *
     *  a class to do stuff and some other cool things.
     *  uses a special interface with a whole bunch of
     *  superimportant features
     */
     public SomeClass()
     {
        super();
     }

or using functions
Comment 1 Markus Keller CLA 2006-03-01 04:44:23 EST
Resynchronizing component and assignedTo fields.
Comment 2 Dani Megert CLA 2006-03-01 05:05:59 EST
Both good ideas. Can you file a separate request for the constructor idea? We might not tackle them together.
Comment 3 Thomas von Haugwitz CLA 2006-03-01 08:09:11 EST
(In reply to comment #2)
> Both good ideas. Can you file a separate request for the constructor idea? We
> might not tackle them together.

Hello, i filed a new enhancement request in this matter which is now available under https://bugs.eclipse.org/bugs/show_bug.cgi?id=129934 !