Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341165 - Databinding should use the Properties API
Summary: Databinding should use the Properties API
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-28 16:28 EDT by Lars Vogel CLA
Modified: 2021-06-04 16:45 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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