@@ -1332,13 +1332,13 @@ public int indexOf (String string, int start) {
1332
1332
* to insert an empty string into a combo. The fix is
1333
1333
* to search the combo, an item at a time.
1334
1334
*/
1335
- if (string .length () == 0 ) {
1335
+ // if (string.length () == 0) {
1336
1336
int count = getItemCount ();
1337
1337
for (int i =start ; i <count ; i ++) {
1338
1338
if (string .equals (getItem (i ))) return i ;
1339
1339
}
1340
1340
return -1 ;
1341
- }
1341
+ // }
1342
1342
1343
1343
/* Use CB_FINDSTRINGEXACT to search for the item */
1344
1344
/*
@@ -1351,8 +1351,8 @@ public int indexOf (String string, int start) {
1351
1351
if (index == OS.CB_ERR || index <= last) return -1;
1352
1352
} while (!string.equals (getItem (index)));
1353
1353
return index;
1354
- */
1355
1354
return -1;
1355
+ */
1356
1356
}
1357
1357
1358
1358
/*
@@ -2197,17 +2197,17 @@ public void setText (String string) {
2197
2197
public void setText (String string , boolean modify ) {
2198
2198
checkWidget ();
2199
2199
if (string == null ) error (SWT .ERROR_NULL_ARGUMENT );
2200
- if ((style & SWT .READ_ONLY ) != 0 ) {
2200
+ // if ((style & SWT.READ_ONLY) != 0) {
2201
2201
int index = indexOf (string );
2202
- if (index != -1 && selectInput .selectedIndex != index ){
2202
+ if (index != -1 && selectInput .selectedIndex != index ){
2203
2203
select (index );
2204
2204
}
2205
2205
//if (selectInput.selectedIndex != index && index != -1) select (index);
2206
2206
// return;
2207
- }
2208
- textInput .readOnly = false ;
2207
+ // }
2208
+ // textInput.readOnly = false;
2209
2209
textInput .value = string ;
2210
- textInput .readOnly = (style & SWT .READ_ONLY ) != 0 ;
2210
+ // textInput.readOnly = (style & SWT.READ_ONLY) != 0;
2211
2211
/*
2212
2212
TCHAR buffer = new TCHAR (getCodePage (), string, true);
2213
2213
if (OS.SetWindowText (handle, buffer)) {
0 commit comments