Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341165

Summary: Databinding should use the Properties API
Product: z_Archived Reporter: Lars Vogel <Lars.Vogel>
Component: WindowBuilderAssignee: Project Inbox <wb.rcp-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: clayberg, Lars.Vogel
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Lars Vogel CLA 2011-03-28 16:28:13 EDT
Looks like WindowsBuilder generates code from the "older" databinding. AFAIK the current suggested approach is to use the Properties API.

For example:

IObservableValue widgetValue = WidgetProperties.text(SWT.Modify)
				.observe(firstName);
IObservableValue modelValue = BeanProperties.value(Person.class,
				"firstName").observe(person);

Would be great if WindowsBuilder could generate code based on the latest API.
Comment 1 Lars Vogel CLA 2011-04-01 05:30:12 EDT
Already possible via the Preference Settings.
Comment 2 Eric Clayberg CLA 2011-05-02 12:51:05 EDT
Here's a link to the docs page on the prefs...

http://code.google.com/javadevtools/wbpro/preferences/swt/preferences_jface_data_bindings.html