Changeset 240:c84e3d3feb3f

Show
Ignore:
Timestamp:
06/20/08 20:24:49 (3 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

allow null strings and arrays as arguments

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/widgets/MenuItem.d

    r213 r240  
    10331033 * @param string the new text 
    10341034 * 
    1035  * @exception IllegalArgumentException <ul> 
    1036  *    <li>ERROR_NULL_ARGUMENT - if the text is null</li> 
    1037  * </ul> 
    10381035 * @exception DWTException <ul> 
    10391036 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 
     
    10451042override public void setText (String string) { 
    10461043    checkWidget (); 
    1047     if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 
     1044    // DWT extension: allow null string 
     1045    //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 
    10481046    if ((style & DWT.SEPARATOR) !is 0) return; 
    10491047    if (text==/*eq*/string ) return; 
  • dwt/widgets/TabFolder.d

    r213 r240  
    669669 * @param items the array of items 
    670670 * 
    671  * @exception IllegalArgumentException <ul> 
    672  *    <li>ERROR_NULL_ARGUMENT - if the items array is null</li> 
    673  * </ul> 
    674671 * @exception DWTException <ul> 
    675672 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 
     
    679676public void setSelection (TabItem [] items) { 
    680677    checkWidget (); 
    681     if (items is null) error (DWT.ERROR_NULL_ARGUMENT); 
     678    // DWT extension: allow null array 
     679    //if (items is null) error (DWT.ERROR_NULL_ARGUMENT); 
    682680    if (items.length is 0) { 
    683681        setSelection (-1, false); 
  • dwt/widgets/TabItem.d

    r213 r240  
    326326 * @param string the new text 
    327327 * 
    328  * @exception IllegalArgumentException <ul> 
    329  *    <li>ERROR_NULL_ARGUMENT - if the text is null</li> 
    330  * </ul> 
    331328 * @exception DWTException <ul> 
    332329 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 
     
    337334override public void setText (String string) { 
    338335    checkWidget(); 
    339     if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 
     336    // DWT extension: allow null string 
     337    //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 
    340338    if (string ==/*eq*/text ) return; 
    341339    int index = parent.indexOf (this);