ControlDecoration Tooltip message transformed in html [message #1229995] |
Fri, 10 January 2014 19:01 |
Arnaud MERGEY Messages: 243 Registered: March 2010 Location: France |
Senior Member |
|
|
Hello,
since RAP 2.2 ControlDecoration messages are wrongly converted into html
It was not the case in RAP 2.1
I attached a project to reproduce, start it
In message view go over the error decoration with the mouse,
""e; a quote<br/>a new line" is displayed
" a quote
a new line" is expected (and what we get in 2.1), the same tooltip text is displayed correctly using it as a control tooltip so it seems this issue only affect ControlDecoration
The code displaying the tooltip is in the View class
//FIXME
Text text2 = new Text(banner, SWT.BORDER);
WritableValue value = new WritableValue(0,Integer.class);
DataBindingContext context = new DataBindingContext();
ControlDecorationSupport.create(context.bindValue(SWTObservables.observeText(text2,SWT.Modify), value,new UpdateValueStrategy().setBeforeSetValidator(new IValidator() {
@Override
public IStatus validate(Object value) {
return new Status(IStatus.ERROR,"snippet.html","\" a quote \n a new line");
}
}),null),SWT.TOP|SWT.LEFT);
GridDataFactory.fillDefaults().grab(true, true).applyTo(text2);
//FIXME
Regards,
Arnaud
-
Attachment: snippet.zip
(Size: 29.67KB, Downloaded 174 times)
[Updated on: Fri, 10 January 2014 19:02] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03736 seconds