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

Bug 414474

Summary: [Text] setMessage does not show hints with < characters
Product: [RT] RAP Reporter: John Gymer <jgymer>
Component: RWTAssignee: 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:

Description John Gymer CLA 2013-08-06 05:23:05 EDT
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" );
}

}
Comment 1 Ivan Furnadjiev CLA 2013-08-07 09:12:37 EDT
Fixed with commit b50d8d82132b51ba3e48ca6527a8588b8f858c48.