mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
[458647] RSE table views don't support quick search when SWT.VIRTUAL
used
This commit is contained in:
parent
9147ad0d24
commit
3b68a39f0c
1 changed files with 7 additions and 4 deletions
|
@ -2218,12 +2218,15 @@ public class SystemTableView
|
||||||
|
|
||||||
|
|
||||||
char c = event.character;
|
char c = event.character;
|
||||||
|
String lowerMatch = new String(""+c).toLowerCase(); //$NON-NLS-1$
|
||||||
|
String upperMatch = new String(""+c).toUpperCase(); //$NON-NLS-1$
|
||||||
|
|
||||||
TableItem[] items = getTable().getItems();
|
TableItem[] items = getTable().getItems();
|
||||||
TableItem found = null;
|
TableItem found = null;
|
||||||
for (int i = sel+1; i < items.length && found == null; i++){
|
for (int i = sel+1; i < items.length && found == null; i++){
|
||||||
TableItem item = items[i];
|
TableItem item = items[i];
|
||||||
String text = item.getText();
|
String text = item.getText();
|
||||||
if (text.startsWith(""+c)){ //$NON-NLS-1$
|
if (text.startsWith(lowerMatch) || text.startsWith(upperMatch)){
|
||||||
found = item;
|
found = item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2232,7 +2235,7 @@ public class SystemTableView
|
||||||
for (int i = 0; i < sel && found == null; i++){
|
for (int i = 0; i < sel && found == null; i++){
|
||||||
TableItem item = items[i];
|
TableItem item = items[i];
|
||||||
String text = item.getText();
|
String text = item.getText();
|
||||||
if (text.startsWith(""+c)){ //$NON-NLS-1$
|
if (text.startsWith(lowerMatch) || text.startsWith(upperMatch)){
|
||||||
found = item;
|
found = item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue