mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
installListSpeedSearch added to UIHelper. Thus plugin vendors may install speed search on their lists.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user