Bug 55763 - Smart JavaBeans code assist [code maipulation]
Summary: Smart JavaBeans code assist [code maipulation]
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC All
: P4 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-23 15:45 EST by David J. Orme CLA
Modified: 2009-08-30 02:18 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 David J. Orme CLA 2004-03-23 15:45:31 EST
JavaBeans-style classes are often used when writing model objects.  Code assist
can help in writing JavaBeans-style classes faster.  For example, given:

public class Employee {
  private String SSN;
  private String firstName;

  add|
}

where the pipe character represents the caret.

Hitting ctrl-space at this point could automatically prompt for
SSNChangeListener or FirstNameChangeListener, and then add the boilerplate code
required to define, say, addSSNChangeListener() and removeSSNChangeListener() if
that's what the user wanted.

The same thing can be done for all getters, setters, bound properties, and
validated properties.
Comment 1 David J. Orme CLA 2004-03-23 15:46:53 EST
Doing it this way has the advantage that you can specify precisely where in the
compilation unit the inserted code should be added.  It's also faster than going
through the dialog box for, say, generating getters/setters.
Comment 2 Dirk Baeumer CLA 2004-03-26 05:42:31 EST
This will not make it into 3.0. Postponing > 3.0
Comment 3 Denis Roy CLA 2009-08-30 02:18:12 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.