comparison dwtx/jface/internal/text/html/BrowserInformationControl.d @ 144:16a71f577815

instanceof after ||
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 21:34:15 +0200
parents b6bad70d540a
children 75302ef3f92f
comparison
equal deleted inserted replaced
143:53b889547456 144:16a71f577815
270 /** 270 /**
271 * {@inheritDoc} This control can handle {@link String} and 271 * {@inheritDoc} This control can handle {@link String} and
272 * {@link BrowserInformationControlInput}. 272 * {@link BrowserInformationControlInput}.
273 */ 273 */
274 public void setInput(Object input) { 274 public void setInput(Object input) {
275 Assert.isLegal(input is null || input instanceof String || input instanceof BrowserInformationControlInput); 275 Assert.isLegal(input is null || cast(String)input || input instanceof BrowserInformationControlInput);
276 276
277 if ( cast(String)input ) { 277 if ( cast(String)input ) {
278 setInformation(cast(String)input); 278 setInformation(cast(String)input);
279 return; 279 return;
280 } 280 }