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

Bug 315691

Summary: TextRidget.setOutputOnly(...) changes background Color unexpectedly
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: 2.0.0.RC4   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Elias Volanakis CLA 2010-06-03 18:17:03 EDT
In some condition textRidget.setEditable(false) unexpectedly changes the Text's background (see SWT Bug #315689).

This only happens when the Text widget has the default background. As a workaround I'm adding code to the TextRidget to save the bgColor before setEditable and re-apply it afterwards
Comment 1 Elias Volanakis CLA 2010-06-03 19:17:06 EDT
Created attachment 171052 [details]
Patch

Fix and tests. 

@Christian: please review for 2.0 / HEAD
Comment 2 Christian Campo CLA 2010-06-07 11:25:06 EDT
patch looks ok to me...
Comment 3 Elias Volanakis CLA 2010-06-07 22:04:41 EDT
Resolved (HEAD / 2.0)