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

Bug 434387

Summary: [FormText] [Client] FormText with bold style URL client script failed
Product: [RT] RAP Reporter: Andrei Neshcheret <a.nesheret>
Component: OtherAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.3   
Target Milestone: 2.3 RC1   
Hardware: All   
OS: All   
Whiteboard:

Description Andrei Neshcheret CLA 2014-05-08 04:25:44 EDT
Client java-script failed when using FormText with parseTags:true and expandURLs:true

--- code snippet
package ru.infinet.rap.tests;

import org.eclipse.rap.rwt.application.AbstractEntryPoint;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.widgets.FormText;

public class FormTextTestEntryPoint extends AbstractEntryPoint
{
  @Override
  protected void createContents( Composite parent )
  {
    final FormText text = new FormText( parent, SWT.WRAP );
    text.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true, 1, 1 ) );
    text.setText( "<form><p><b>http://www.w3.org</b></p></form>", true, true );
  }
}

---
Result is
Error: Error: Operation "set" on target "w3" of type "org.eclipse.ui.forms.widgets.FormText" failed:
'undefined' is not a function (evaluating 'widgetManager.setFont( textHyperlink, font[ 0 ], font[ 1 ], font[ 2 ], font[ 3 ] )')
Properties: 
hyperlinkSettings = 3,0,0,255,255,
...
Comment 1 Ivan Furnadjiev CLA 2014-05-12 05:20:27 EDT
Fixed with change https://git.eclipse.org/r/26226.