Mercurial > projects > dwt-win
comparison dwt/widgets/MenuItem.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | 25f88bf5a6df |
children | 36f5cb12e1a2 |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
461 override public Menu getMenu () { | 461 override public Menu getMenu () { |
462 checkWidget (); | 462 checkWidget (); |
463 return menu; | 463 return menu; |
464 } | 464 } |
465 | 465 |
466 override char[] getNameText () { | 466 override String getNameText () { |
467 if ((style & DWT.SEPARATOR) !is 0) return "|"; | 467 if ((style & DWT.SEPARATOR) !is 0) return "|"; |
468 return super.getNameText (); | 468 return super.getNameText (); |
469 } | 469 } |
470 | 470 |
471 /** | 471 /** |
1041 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> | 1041 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> |
1042 * </ul> | 1042 * </ul> |
1043 * | 1043 * |
1044 * @see #setAccelerator | 1044 * @see #setAccelerator |
1045 */ | 1045 */ |
1046 override public void setText (char[] string) { | 1046 override public void setText (String string) { |
1047 checkWidget (); | 1047 checkWidget (); |
1048 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); | 1048 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); |
1049 if ((style & DWT.SEPARATOR) !is 0) return; | 1049 if ((style & DWT.SEPARATOR) !is 0) return; |
1050 if (text==/*eq*/string ) return; | 1050 if (text==/*eq*/string ) return; |
1051 super.setText (string); | 1051 super.setText (string); |