Bug 167823 - [type wizards] Generate comment option in new class wizard should use JavaDoc of Super-Class
Summary: [type wizards] Generate comment option in new class wizard should use JavaDoc...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 169178
  Show dependency tree
 
Reported: 2006-12-13 05:20 EST by Ulli Hafner CLA
Modified: 2009-01-23 11:35 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 Ulli Hafner CLA 2006-12-13 05:20:35 EST
When I'm using the create new class wizard and activating the options "generate comments" and "create constructors" the new class will get the constructors of the super class. It would be nice, if the generated comment would also contain the JavaDoc text of the @param tags of the super class. Currently only the name of the parameter is used (e.g., @param name) and not (@param name "documentation of parameter in super class).

My constructor template:
/**
 * Creates a new instance of <code>${enclosing_type}</code>.
 * ${tags}
 */

After creating a new class (sub-class of DiffNode), I get the following:
    /**
     * Creates a new instance of <code>MergeDiffNode</code>.
     * @param kind
     */
    public MergeDiffNode(int kind) {
        super(kind);
        // TODO Auto-generated constructor stub
    }

What I rather would expect is the following:
    /**
     * Creates a new instance of <code>MergeDiffNode</code>.
     * @param kind of difference (defined in <code>Differencer</code>)
     */
    public MergeDiffNode(int kind) {
        super(kind);
        // TODO Auto-generated constructor stub
    }