Databinding question/feature

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Databinding question/feature

Postby rimmeraj » Thu Aug 30, 2007 5:59 am

Firstly, when I add property to my Model bean and then try to attach it using databinding in SWT dsigner it does not show the property. If I exit eclipse and restart it does. Compiling/Saving or running does not seem to refresh the state of the data bean.

As an aside.. it would be nice if during the databinding you could add the get/set methods to the Data Model. Maybe a template of what the getter and setters look like?
rimmeraj
 
Posts: 11
Joined: Wed Oct 22, 2003 12:52 pm

Re: Databinding question/feature

Postby Eric Clayberg » Thu Aug 30, 2007 2:13 pm

rimmeraj wrote:Firstly, when I add property to my Model bean and then try to attach it using databinding in SWT dsigner it does not show the property. If I exit eclipse and restart it does. Compiling/Saving or running does not seem to refresh the state of the data bean.

Try closing and re-openning the Designer editor or clicking the Refresh button in the editor.

rimmeraj wrote:As an aside.. it would be nice if during the databinding you could add the get/set methods to the Data Model. Maybe a template of what the getter and setters look like?

I'm not sure what you mean.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby rimmeraj » Fri Aug 31, 2007 4:50 am

I'll try again.

If you are use the Presentation Model pattern, your Presentation Model(PM) is holding the state of the view plus is a thin wrapper around your underlying data model. So instead of defining all the properties in the PM, creating the view components and then binding them together, what I was looking for was to add the properties to the PM as I was doing the databinding from the view.
rimmeraj
 
Posts: 11
Joined: Wed Oct 22, 2003 12:52 pm

Postby Eric Clayberg » Fri Aug 31, 2007 5:48 am

It would be helpful if you could post an example of what you are talking about and any proposed code generation enhancements.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests