Enable markup immediately after widget is created
Change-Id: Ibf26832ad1c5d0167922d18c12940245e5da88b8
diff --git a/examples/org.eclipse.rap.demo.controls/src/org/eclipse/rap/demo/controls/ButtonTab.java b/examples/org.eclipse.rap.demo.controls/src/org/eclipse/rap/demo/controls/ButtonTab.java
index 8b89ee4..e81821d 100644
--- a/examples/org.eclipse.rap.demo.controls/src/org/eclipse/rap/demo/controls/ButtonTab.java
+++ b/examples/org.eclipse.rap.demo.controls/src/org/eclipse/rap/demo/controls/ButtonTab.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2002, 2015 Innoopract Informationssysteme GmbH and others.
+ * Copyright (c) 2002, 2019 Innoopract Informationssysteme GmbH and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -99,8 +99,8 @@
parent.setLayout( new GridLayout( 1, false ) );
int style = getStyle();
pushButton = new Button( parent, style | SWT.PUSH );
- pushButton.setText( markupEnabled ? "<b>Push</b> <i>Button</i>" : "Push\n Button" );
pushButton.setData( RWT.MARKUP_ENABLED, markupEnabled ? Boolean.TRUE : null );
+ pushButton.setText( markupEnabled ? "<b>Push</b> <i>Button</i>" : "Push\n Button" );
updateButtonImage( pushButton );
toggleButton = new Button( parent, style | SWT.TOGGLE );
toggleButton.setText( "Toggle" );
@@ -117,8 +117,8 @@
radioButton3 = new Button( parent, style | SWT.RADIO );
radioButton3.setText( "Radio 3" );
arrowButton = new Button( parent, style | SWT.ARROW );
- arrowButton.setToolTipText( getToolTipText() );
arrowButton.setData( RWT.TOOLTIP_MARKUP_ENABLED, Boolean.TRUE );
+ arrowButton.setToolTipText( getToolTipText() );
if( hasCreateProperty( PROP_SELECTION_LISTENER ) ) {
Listener listener = new Listener() {
@Override
@@ -177,7 +177,7 @@
private String getToolTipText() {
StringBuilder builder = new StringBuilder();
builder.append( "<span style='color:yellow; font-weight:bold;'>" );
- builder.append( "This is tooltip with markup <br/> & <br/> <i>additional line</i>" );
+ builder.append( "This is tooltip with markup <br/> & <br/> <i>additional line</i>" );
builder.append( "</span>" );
return builder.toString();
}