public MnemonicsSearch(WizardPopup popup) { myPopup = popup; if (!myPopup.getStep().isMnemonicsNavigationEnabled()) return; final MnemonicNavigationFilter filter = myPopup.getStep().getMnemonicNavigationFilter(); final List<T> values = filter.getValues(); for (T each : values) { final int pos = filter.getMnemonicPos(each); if (pos != -1) { final String text = filter.getTextFor(each); final String charText = text.substring(pos + 1, pos + 2); myChar2ValueMap.put(StringUtil.toUpperCase(charText), each); myChar2ValueMap.put(charText.toLowerCase(), each); } } }
@Override public MnemonicNavigationFilter<T> getMnemonicNavigationFilter() { return this; }
@Nullable @Override public MnemonicNavigationFilter getMnemonicNavigationFilter() { return null; }
@Override public MnemonicNavigationFilter getMnemonicNavigationFilter() { return null; }