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

Bug 527124

Summary: [JFace InputDialog] In InputDialog the text field in which the error messages are shown cannot be themed
Product: [RT] RAP Reporter: Matthias Boehm <Matthias.Boehm>
Component: JFaceAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Matthias.Boehm
Version: 3.2   
Target Milestone: 3.5 M2   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/118238
https://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=1558af76027df9c38e6bf8b542caaa8c85000c9c
Whiteboard:
Attachments:
Description Flags
Sample application and two images none

Description Matthias Boehm CLA 2017-11-10 08:59:51 EST
Created attachment 271408 [details]
Sample application and two images

The text field in the InputDialog where the error messages are shown always has a white background. But this doesn't fit to the theme we use; we want to have a blue background, and red bold font (see appended images). Unfortunately, there is no getter method in InputDialog with which we could retrieve the text box for applying a custom theme (by textField.setData(RWT.CUSTOM_VARIANT, "ErrorMessageTextField")). Could you provide such a getter method? 

Appended is a sample application with a simple InputDialog and a simple theme with blue backgrounds. The text field with the error message has a white background instead of a blue. I saw that the code in InputDialog explicitely sets the background of the text field to white; this code probably must be removed, so that the custom theme isn't overwritten. If this code is removed and no custom theme is applied, the standard theme for text fields is used, and that is often already enough.
Comment 1 Matthias Boehm CLA 2018-02-21 06:25:26 EST
Hi again, 

could you at least remove the explicit setting of the background color of the error message field? That would help a lot, because then, the error message field would get the background color of our custom theme.
Comment 2 Eclipse Genie CLA 2018-02-27 04:26:41 EST
New Gerrit change created: https://git.eclipse.org/r/118238