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

Bug 321944

Summary: DecimalTextRidget - Exception in updateFromModel() when using converter
Product: [RT] Riena Reporter: Elias Volanakis <elias>
Component: ridgetAssignee: Elias Volanakis <elias>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: christian.campo
Version: unspecified   
Target Milestone: 3.0.0.M2   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Elias Volanakis CLA 2010-08-06 02:18:08 EDT
This code fails:

			rInput.setMaxLength(8);
			rInput.setPrecision(2);
			rInput.bindToModel(new DoubleBean(1234.000000002), DoubleBean.PROP_VALUE);
			//---- adding a converter -----
			final IConverter myConverter = ToStringConverterFactory.createNumberConverter(Double.class, 2);
			rInput.setModelToUIControlConverter(myConverter);
			// ----------------------------
			rInput.updateFromModel();

This is a very simple bug. There is a boolean flag that should be set to true when invoking setModelToUIControlConverter(...). The flag is currently being set in the wrong method (setUIControlToModelConverter). Fixing right now...
Comment 1 Elias Volanakis CLA 2010-08-06 02:50:37 EDT
Resolved in HEAD.