diff --git a/openapi/src/com/intellij/ui/UIHelper.java b/openapi/src/com/intellij/ui/UIHelper.java index d1f598d67c2e..de211b9e3683 100644 --- a/openapi/src/com/intellij/ui/UIHelper.java +++ b/openapi/src/com/intellij/ui/UIHelper.java @@ -31,15 +31,15 @@ */ package com.intellij.ui; -import com.intellij.util.ui.Tree; -import com.intellij.util.ui.Table; -import com.intellij.util.ui.treetable.TreeTable; -import com.intellij.psi.PsiElement; import com.intellij.openapi.project.Project; +import com.intellij.psi.PsiElement; +import com.intellij.util.ui.Table; +import com.intellij.util.ui.Tree; +import com.intellij.util.ui.treetable.TreeTable; import javax.swing.*; -import javax.swing.tree.TreeCellRenderer; import javax.swing.table.TableCellRenderer; +import javax.swing.tree.TreeCellRenderer; import java.awt.*; public interface UIHelper { @@ -55,6 +55,8 @@ public interface UIHelper { void installTreeSpeedSearch(Tree tree); + void installListSpeedSearch(JList list); + void installEditSourceOnEnterKeyHandler(JTree tree); TableCellRenderer createPsiElementRenderer(PsiElement psiElement, Project project); diff --git a/source/com/intellij/peer/impl/PeerFactoryImpl.java b/source/com/intellij/peer/impl/PeerFactoryImpl.java index b789475293bc..279003835ae9 100644 --- a/source/com/intellij/peer/impl/PeerFactoryImpl.java +++ b/source/com/intellij/peer/impl/PeerFactoryImpl.java @@ -2,12 +2,17 @@ package com.intellij.peer.impl; import com.intellij.execution.runners.ProcessProxyFactory; import com.intellij.execution.runners.ProcessProxyFactoryImpl; +import com.intellij.ide.structureView.StructureView; +import com.intellij.ide.structureView.StructureViewFactory; +import com.intellij.ide.structureView.StructureViewModel; +import com.intellij.ide.structureView.newStructureView.StructureViewComponent; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.components.ApplicationComponent; import com.intellij.openapi.diff.DiffRequestFactory; import com.intellij.openapi.diff.impl.mergeTool.DiffRequestFactoryImpl; import com.intellij.openapi.fileChooser.FileSystemTreeFactory; import com.intellij.openapi.fileChooser.ex.FileSystemTreeFactoryImpl; +import com.intellij.openapi.fileEditor.FileEditor; import com.intellij.openapi.project.Project; import com.intellij.openapi.ui.DialogWrapperPeerFactory; import com.intellij.openapi.ui.impl.DialogWrapperPeerFactoryImpl; @@ -19,7 +24,6 @@ import com.intellij.openapi.vcs.actions.VcsContextFactory; import com.intellij.openapi.vcs.actions.VcsContextWrapper; import com.intellij.openapi.vcs.impl.FileStatusFactoryImpl; import com.intellij.openapi.vfs.VirtualFile; -import com.intellij.openapi.fileEditor.FileEditor; import com.intellij.packageDependencies.packageSet.PackageSetFactoryImpl; import com.intellij.peer.PeerFactory; import com.intellij.psi.*; @@ -36,10 +40,6 @@ import com.intellij.util.EditSourceOnEnterKeyHandler; import com.intellij.util.ui.Table; import com.intellij.util.ui.Tree; import com.intellij.util.ui.treetable.TreeTable; -import com.intellij.ide.structureView.StructureViewFactory; -import com.intellij.ide.structureView.StructureView; -import com.intellij.ide.structureView.StructureViewModel; -import com.intellij.ide.structureView.newStructureView.StructureViewComponent; import javax.swing.*; import javax.swing.table.TableCellRenderer; @@ -136,6 +136,10 @@ public class PeerFactoryImpl extends PeerFactory implements ApplicationComponent new TreeSpeedSearch(tree); } + public void installListSpeedSearch(JList list) { + new ListSpeedSearch(list); + } + public void installEditSourceOnEnterKeyHandler(JTree tree) { EditSourceOnEnterKeyHandler.install(tree); }