Bug 169178 - [generate delegate] generate delegate methods should copy JavaDoc of delegate
Summary: [generate delegate] generate delegate methods should copy JavaDoc of delegate
Status: NEW
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: 167823
Blocks:
  Show dependency tree
 
Reported: 2006-12-28 07:19 EST by Ulli Hafner CLA
Modified: 2007-06-14 10:43 EDT (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-28 07:19:36 EST
Hi, 

when using the Source->Generate Delegate Methods... wizard, there is an option to automatically generate the JavaDoc comments for the new methods. It would be nice, if there is an option (checkbox) to copy these comments exactly from the delegate class (instead of the link). Currently, only a reference to the delegate is generated:

E.g., I hava a member of type  

private RangeDifference rangeDifference;

When selecting the rangeDifference and invoking the wizard Source->Generate Delegate Methods..., then the following method is generated:

/**
 * @return
 * @see org.eclipse.compare.RangeDifference#ancestorEnd()
 */
public int ancestorEnd() {
    return rangeDifference.ancestorEnd();
}

It would rather be nice if the generated method would be (the comments are copied from the delegate RangeDifference):

/**
 * Returns the end index of the entity range on the ancestor side.
 *
 * @return the end index of the entity range on the ancestor side
 */
public int ancestorEnd() {
    return rangeDifference.ancestorEnd();
}