Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333367 - Generate delegate methods with a prefix based on the field name
Summary: Generate delegate methods with a prefix based on the field name
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-31 13:51 EST by David Byrne CLA
Modified: 2011-01-06 05:57 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Byrne CLA 2010-12-31 13:51:41 EST
Build Identifier: M20100909-0800

Support generating delegate methods with a prefix based on the field name. For example:

public class blah
{
  private List<String> countries;
  private List<String> cities;
}

The proposed feature would allow the user to create delegate methods such as these:

public void addCity(String city)
public void addCountry(String country)
public void clearCities()
public void clearCountires()


I realize that the name parsing & generation would be difficult, but this would be a great feature, even if some manual corrections were required.

Thanks,
David Byrne

Reproducible: Always
Comment 1 Ayushman Jain CLA 2011-01-06 01:54:08 EST
Moving to JDT/UI for comment.
Comment 2 Markus Keller CLA 2011-01-06 05:57:51 EST
This looks like a use case that would better be implemented using EMF or other modeling tools. We have no plans to add an action that only generates delegate method stubs without any useful implementation.