Java 类com.intellij.ui.FilterComponent 实例源码

项目:consulo    文件:AvailablePluginsDialog.java   
public AvailablePluginsDialog(Component parent, SearchableConfigurable configurable, FilterComponent myFilter) {
  super(parent, configurable, ShowSettingsUtilImpl.createDimensionKey(configurable), false);

  setOKButtonText(CommonBundle.message("close.action.name"));
  setOKButtonMnemonic('C');
  final String filter = myFilter.getFilter();

  if (!StringUtil.isEmptyOrSpaces(filter)) {
    final Runnable searchRunnable = configurable.enableSearch(filter);
    LOGGER.assertTrue(searchRunnable != null);
    searchRunnable.run();
  }
}