Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/custom/PopupList.d @ 9:950d84783eac
Removing direct tango deps.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 09 Mar 2009 14:26:40 +0100 |
parents | 6dd524f61e62 |
children |
comparison
equal
deleted
inserted
replaced
8:2847134a5fc0 | 9:950d84783eac |
---|---|
226 | 226 |
227 // find the first entry in the list that starts with the | 227 // find the first entry in the list that starts with the |
228 // specified string | 228 // specified string |
229 if (string !is null){ | 229 if (string !is null){ |
230 for (int i = 0; i < items.length; i++) { | 230 for (int i = 0; i < items.length; i++) { |
231 if ( tango.text.Util.locatePattern( items[i], string) is 0 ){ | 231 if (items[i].startsWith(string)){ |
232 int index = list.indexOf(items[i]); | 232 int index = list.indexOf(items[i]); |
233 list.select(index); | 233 list.select(index); |
234 break; | 234 break; |
235 } | 235 } |
236 } | 236 } |