| Summary: | [Text] setMessage does not show hints with < characters | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | John Gymer <jgymer> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 2.1 | ||
| Target Milestone: | 2.2 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Fixed with commit b50d8d82132b51ba3e48ca6527a8588b8f858c48. |
If you use setMessage method on a Text control to give it a hint, but the hint contains a less than "<" character, than the hint does not get displayed after that character. Snippet (thanks Ralf!): public class TextMessageSnippet extends AbstractEntryPoint { @Override protected void createContents( Composite parent ) { parent.setLayout( new GridLayout() ); new Text( parent, SWT.BORDER ).setText( "less<than" ); new Text( parent, SWT.BORDER ).setText( "greater>than" ); new Text( parent, SWT.BORDER ).setMessage( "less<than" ); new Text( parent, SWT.BORDER ).setMessage( "greater>than" ); } }