Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315691 - TextRidget.setOutputOnly(...) changes background Color unexpectedly
Summary: TextRidget.setOutputOnly(...) changes background Color unexpectedly
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: ridget (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 2.0.0.RC4   Edit
Assignee: Elias Volanakis CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-03 18:17 EDT by Elias Volanakis CLA
Modified: 2010-06-08 09:33 EDT (History)
1 user (show)

See Also:


Attachments
Patch (2.79 KB, patch)
2010-06-03 19:17 EDT, Elias Volanakis CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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)