Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ControlDecoration Tooltip message transformed in html
ControlDecoration Tooltip message transformed in html [message #1229995] Fri, 10 January 2014 19:01 Go to next message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
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,

"&quote; 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

Re: ControlDecoration Tooltip message transformed in html [message #1230010 is a reply to message #1229995] Fri, 10 January 2014 19:49 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Arnaud,
this issue has been fixed in master. See:
423571: [ControlDecoration] quotation marks not correct
https://bugs.eclipse.org/bugs/show_bug.cgi?id=423571
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: ControlDecoration Tooltip message transformed in html [message #1230855 is a reply to message #1230010] Mon, 13 January 2014 08:44 Go to previous message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
Thanks Ivan, I forgot to search in fixed bugs

Regards,
Arnaud
Previous Topic:rowTemplate images don't change immediately
Next Topic:Some Tooltips are misplaced with RAP version 2.2
Goto Forum:
  


Current Time: Thu Apr 25 08:34:09 GMT 2024

Powered by FUDForum. Page generated in 0.03736 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top