@@ -1332,13 +1332,13 @@ public int indexOf (String string, int start) {
13321332 * to insert an empty string into a combo. The fix is
13331333 * to search the combo, an item at a time.
13341334 */
1335- if (string .length () == 0 ) {
1335+ // if (string.length () == 0) {
13361336 int count = getItemCount ();
13371337 for (int i =start ; i <count ; i ++) {
13381338 if (string .equals (getItem (i ))) return i ;
13391339 }
13401340 return -1 ;
1341- }
1341+ // }
13421342
13431343 /* Use CB_FINDSTRINGEXACT to search for the item */
13441344 /*
@@ -1351,8 +1351,8 @@ public int indexOf (String string, int start) {
13511351 if (index == OS.CB_ERR || index <= last) return -1;
13521352 } while (!string.equals (getItem (index)));
13531353 return index;
1354- */
13551354 return -1;
1355+ */
13561356}
13571357
13581358/*
@@ -2197,17 +2197,17 @@ public void setText (String string) {
21972197public void setText (String string , boolean modify ) {
21982198 checkWidget ();
21992199 if (string == null ) error (SWT .ERROR_NULL_ARGUMENT );
2200- if ((style & SWT .READ_ONLY ) != 0 ) {
2200+ // if ((style & SWT.READ_ONLY) != 0) {
22012201 int index = indexOf (string );
2202- if (index != -1 && selectInput .selectedIndex != index ){
2202+ if (index != -1 && selectInput .selectedIndex != index ){
22032203 select (index );
22042204 }
22052205 //if (selectInput.selectedIndex != index && index != -1) select (index);
22062206// return;
2207- }
2208- textInput .readOnly = false ;
2207+ // }
2208+ // textInput.readOnly = false;
22092209 textInput .value = string ;
2210- textInput .readOnly = (style & SWT .READ_ONLY ) != 0 ;
2210+ // textInput.readOnly = (style & SWT.READ_ONLY) != 0;
22112211 /*
22122212 TCHAR buffer = new TCHAR (getCodePage (), string, true);
22132213 if (OS.SetWindowText (handle, buffer)) {
0 commit comments