Mercurial > projects > dwt-addons
comparison dwtx/jface/text/source/projection/SourceViewerInformationControl.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 65801ad2b265 |
children | 75302ef3f92f |
comparison
equal
deleted
inserted
replaced
137:25170b5a8951 | 138:b6bad70d540a |
---|---|
187 /** | 187 /** |
188 * @see dwtx.jface.text.IInformationControlExtension2#setInput(java.lang.Object) | 188 * @see dwtx.jface.text.IInformationControlExtension2#setInput(java.lang.Object) |
189 * @param input the input object | 189 * @param input the input object |
190 */ | 190 */ |
191 public void setInput(Object input) { | 191 public void setInput(Object input) { |
192 if (input instanceof String) | 192 if ( cast(String)input ) |
193 setInformation(cast(String)input); | 193 setInformation(cast(String)input); |
194 else | 194 else |
195 setInformation(null); | 195 setInformation(null); |
196 } | 196 } |
197 | 197 |
419 */ | 419 */ |
420 public bool containsControl(Control control) { | 420 public bool containsControl(Control control) { |
421 do { | 421 do { |
422 if (control is fShell) | 422 if (control is fShell) |
423 return true; | 423 return true; |
424 if (control instanceof Shell) | 424 if ( cast(Shell)control ) |
425 return false; | 425 return false; |
426 control= control.getParent(); | 426 control= control.getParent(); |
427 } while (control !is null); | 427 } while (control !is null); |
428 return false; | 428 return false; |
429 } | 429 } |