mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FinderRecursivePanel: restore list filtering on speed search
This commit is contained in:
@@ -14,6 +14,7 @@ import com.intellij.pom.Navigatable;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.ui.components.JBLabel;
|
||||
import com.intellij.ui.components.JBList;
|
||||
import com.intellij.ui.speedSearch.ListWithFilter;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
import com.intellij.util.Function;
|
||||
import com.intellij.util.SmartList;
|
||||
@@ -107,9 +108,16 @@ public class FinderRecursivePanel<T> extends JBSplitter implements DataProvider,
|
||||
protected JComponent createLeftComponent() {
|
||||
myList = createList();
|
||||
|
||||
return ScrollPaneFactory.createScrollPane(myList,
|
||||
ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
|
||||
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
|
||||
final JScrollPane pane =
|
||||
ScrollPaneFactory.createScrollPane(myList,
|
||||
ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
|
||||
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
|
||||
return ListWithFilter.wrap(myList, pane, new Function<T, String>() {
|
||||
@Override
|
||||
public String fun(T o) {
|
||||
return getItemText(o);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected String getListEmptyText() {
|
||||
|
||||
Reference in New Issue
Block a user