|
Lines 185-191
Link Here
|
| 185 |
String result = WidgetLCAUtil.escapeText( text, drawMnemonic ); |
185 |
String result = WidgetLCAUtil.escapeText( text, drawMnemonic ); |
| 186 |
String replacement = ""; |
186 |
String replacement = ""; |
| 187 |
if( ( flags & SWT.DRAW_DELIMITER ) != 0 ) { |
187 |
if( ( flags & SWT.DRAW_DELIMITER ) != 0 ) { |
| 188 |
replacement = "</br>"; |
188 |
replacement = "<br/>"; |
| 189 |
} |
189 |
} |
| 190 |
result = EncodingUtil.replaceNewLines( result, replacement ); |
190 |
result = EncodingUtil.replaceNewLines( result, replacement ); |
| 191 |
replacement = ""; |
191 |
replacement = ""; |
|
Lines 198-204
Link Here
|
| 198 |
|
198 |
|
| 199 |
private void setProperty( final SetProperty operation ) throws IOException { |
199 |
private void setProperty( final SetProperty operation ) throws IOException { |
| 200 |
JSWriter writer = JSWriter.getWriterFor( control ); |
200 |
JSWriter writer = JSWriter.getWriterFor( control ); |
| 201 |
String jsProperty = null; |
201 |
String jsProperty; |
| 202 |
switch( operation.id ) { |
202 |
switch( operation.id ) { |
| 203 |
case SetProperty.FOREGROUND: |
203 |
case SetProperty.FOREGROUND: |
| 204 |
jsProperty = "foreground"; |
204 |
jsProperty = "foreground"; |
|
Lines 218-228
Link Here
|
| 218 |
case SetProperty.LINE_JOIN: |
218 |
case SetProperty.LINE_JOIN: |
| 219 |
jsProperty = "lineJoin"; |
219 |
jsProperty = "lineJoin"; |
| 220 |
break; |
220 |
break; |
|
|
221 |
default: |
| 222 |
String msg = "Unsupported operation id: " + operation.id; |
| 223 |
throw new RuntimeException( msg ); |
| 221 |
} |
224 |
} |
| 222 |
if( jsProperty != null ) { |
225 |
Object[] args = new Object[] { jsProperty, operation.value }; |
| 223 |
Object[] args = new Object[] { jsProperty, operation.value }; |
226 |
writer.call( GC_VAR, "setProperty", args ); |
| 224 |
writer.call( GC_VAR, "setProperty", args ); |
|
|
| 225 |
} |
| 226 |
} |
227 |
} |
| 227 |
|
228 |
|
| 228 |
private void setFont( final SetFont operation ) throws IOException { |
229 |
private void setFont( final SetFont operation ) throws IOException { |