Java 类com.intellij.openapi.ui.popup.MnemonicNavigationFilter 实例源码

项目:intellij-ce-playground    文件:MnemonicsSearch.java   
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);
    }
  }
}
项目:tools-idea    文件:MnemonicsSearch.java   
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);
    }
  }
}
项目:consulo    文件:MnemonicsSearch.java   
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);
    }
  }
}
项目:intellij-ce-playground    文件:BaseStep.java   
@Override
public MnemonicNavigationFilter<T> getMnemonicNavigationFilter() {
  return this;
}
项目:tools-idea    文件:BaseStep.java   
@Override
public MnemonicNavigationFilter<T> getMnemonicNavigationFilter() {
  return this;
}
项目:consulo    文件:BaseStep.java   
@Override
public MnemonicNavigationFilter<T> getMnemonicNavigationFilter() {
  return this;
}
项目:consulo    文件:AsyncPopupStep.java   
@Nullable
@Override
public MnemonicNavigationFilter getMnemonicNavigationFilter() {
  return null;
}
项目:consulo-java    文件:PsiMethodListPopupStep.java   
@Override
public MnemonicNavigationFilter getMnemonicNavigationFilter()
{
    return null;
}