public final class ComboUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getClosestMatchIndex(String[] items,
String str)
Returns the index of the closest match.
|
static boolean |
setClosestMatch(org.eclipse.swt.custom.CCombo combo,
String s)
Set the closest match based on the given String.
|
public static int getClosestMatchIndex(String[] items, String str)
items - an array of string to match the given string againststr - the string to be matchedpublic static boolean setClosestMatch(org.eclipse.swt.custom.CCombo combo,
String s)
combo - the CCombo which should be updated in case the given string matchess - the String the closest match should be selected bytrue, if the a match has been found and set, false otherwiseCopyright © 2018. All rights reserved.