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

Bug 350381

Summary: Incorrect java generation for UpdateValueStrategy
Product: z_Archived Reporter: Cristiano Gaviao <cvgaviao>
Component: WindowBuilderAssignee: Project Inbox <wb.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: clayberg, juangenaro281290, sablin.andrey
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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.