Mercurial > projects > dwt-linux
comparison dwt/widgets/Dialog.d @ 255:5a30aa9820f3
removed tango.stdc.stringz imports and allow null for arrays and string arguments.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 15 Jun 2008 22:32:20 +0200 |
parents | ce446666f5a2 |
children | c0d810de7093 |
comparison
equal
deleted
inserted
replaced
254:8bca790583c3 | 255:5a30aa9820f3 |
---|---|
254 * window manager will typically display as the receiver's | 254 * window manager will typically display as the receiver's |
255 * <em>title</em>, to the argument, which must not be null. | 255 * <em>title</em>, to the argument, which must not be null. |
256 * | 256 * |
257 * @param string the new text | 257 * @param string the new text |
258 * | 258 * |
259 * @exception IllegalArgumentException <ul> | |
260 * <li>ERROR_NULL_ARGUMENT - if the text is null</li> | |
261 * </ul> | |
262 * @exception DWTException <ul> | 259 * @exception DWTException <ul> |
263 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> | 260 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
264 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> | 261 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> |
265 * </ul> | 262 * </ul> |
266 */ | 263 */ |
267 public void setText (String string) { | 264 public void setText (String string) { |
268 if (string is null) error (DWT.ERROR_NULL_ARGUMENT); | 265 // DWT extension: allow null for zero length string |
266 //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); | |
269 title = string; | 267 title = string; |
270 } | 268 } |
271 | 269 |
272 } | 270 } |