Bug 48059 - Turn able to generate methods protected to obtain references to visual componentes, and event handlers may be abstract.
Summary: Turn able to generate methods protected to obtain references to visual compon...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VE (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: VE Bugzilla inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-04 07:10 EST by Edson Richter CLA
Modified: 2011-06-13 11:38 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 Edson Richter CLA 2003-12-04 07:10:48 EST
In preferences, user should select if he want methods private, protected or 
public. Example: user add an JLabel. If the preferences is to work with 
protected, the genereted code should be

private JLabel jLabel1 = null;

protected JLabel getJLabel1() {
...
}

User could configure events to be genereted as abstract. So, a actionPerformed 
for a JButton should be:

jButton1.addActionListener( new ActionListener(ActionEvent e) {
  jButton1ActionPerformed(ActionEvent e);
});

...

protected abstract jButton1ActionPerformed(ActionEvent e);

...

(protected, in this case, is related to the preference of the user, again). Of 
course, if user choose generated abstract event handlers, VE should not enable 
to generate private methods.
Comment 1 Gili Mendel CLA 2003-12-04 07:46:57 EST
Yes,

As a matter of fact our goal it to do better;
we are in the process of moving all code generation templates to be JET
templates (EMF flavor of JSP syntax), and enable the user to "edit" them in the
pref. page, and also optionaly drive Eclipse formating on it.

currently only events generation have JET templates. See plugin
org.eclipse.ve.java.core::
templates\org\eclipse\ve\internal\java\codegen\jjet\util\AnonymousEventMethodTemplate.javajet
as an example  
Comment 2 Richard Kulp CLA 2004-05-03 17:44:16 EDT
Since M1 is now complete these are being retargeted to M2.
Comment 3 Richard Kulp CLA 2004-11-30 10:16:13 EST
Removing target since 1.0.0 has already passed and these weren't fixed in it.