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

Bug 323899

Summary: DateTimeRidget.setOutputOnly() has no effect
Product: [RT] Riena Reporter: Patrick He <platinas.hy>
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: Other   
OS: All   
Whiteboard:

Description Patrick He CLA 2010-08-29 01:24:34 EDT
Build Identifier: 

When DateTimeRidget.setOutputOnly(true) is called, the ridget still can change the value of itself and the model.

Reproducible: Always

Steps to Reproduce:
1. Open DateTimeSubModuleController in SWT example application
2. Add dtDate.setOutputOnly(true); or to any DateTimeRidget
3. Run the example application. The date is still selectable and changeable. Also models can be updated too.
Comment 1 Elias Volanakis CLA 2010-08-30 16:48:51 EDT
Thanks, resolved in HEAD.

As a workaround: since output-only is equivalent to enabled:=false you can use ridget.setEnabled(false) instead (only for the DateTimeRidget).