Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350381 - Incorrect java generation for UpdateValueStrategy
Summary: Incorrect java generation for UpdateValueStrategy
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-26 11:00 EDT by Cristiano Gaviao CLA
Modified: 2021-06-04 16:45 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cristiano Gaviao CLA 2011-06-26 11:00:48 EDT
Build Identifier: 

When using JFace Automatic Databinding if you choose an update strategy different from Update All WindowBuilder is generating this code:

bindingContext.bindValue(idObserveWidget, idObserveValue,
				UpdateValueStrategy.POLICY_NEVER, null);

That brings this error:
The method bindValue(IObservableValue, IObservableValue, UpdateValueStrategy, UpdateValueStrategy) in the type DataBindingContext is not applicable for the arguments (IObservableValue, IObservableValue, int, null)

bindValue method is expecting a UpdateValueStrategy class and not a int.

Reproducible: Always

Steps to Reproduce:
1. call the wizard JFace Automatic Databinding
2. choose any bean
3. select any property
4. select the widget
5. select a UpdateStrategy other than UpdateAll
Comment 1 Andrey Sablin CLA 2011-07-12 00:18:03 EDT
Fixed in trunk.
Comment 2 Eric Clayberg CLA 2011-07-18 22:52:56 EDT
Fixed in latest integration build.