From 7055e200487d8613aba30fcf525c7dfce323fca7 Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 19 Jan 2010 20:38:30 +0300 Subject: [PATCH] change signature: do not expand params/exceptions tree on node check --- .../refactoring/changeSignature/inCallers/CallerChooser.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/java-impl/src/com/intellij/refactoring/changeSignature/inCallers/CallerChooser.java b/java/java-impl/src/com/intellij/refactoring/changeSignature/inCallers/CallerChooser.java index b10eeaa8e6..a7a04e1856 100644 --- a/java/java-impl/src/com/intellij/refactoring/changeSignature/inCallers/CallerChooser.java +++ b/java/java-impl/src/com/intellij/refactoring/changeSignature/inCallers/CallerChooser.java @@ -34,6 +34,7 @@ import com.intellij.psi.search.LocalSearchScope; import com.intellij.psi.search.searches.ReferencesSearch; import com.intellij.refactoring.RefactoringBundle; import com.intellij.ui.CheckboxTree; +import com.intellij.ui.CheckboxTreeBase; import com.intellij.ui.CheckedTreeNode; import com.intellij.ui.IdeBorderFactory; import com.intellij.ui.treeStructure.Tree; @@ -198,7 +199,7 @@ public abstract class CallerChooser extends DialogWrapper { final CheckedTreeNode root = new MethodNode(null, new HashSet()); myRoot = new MethodNode(myMethod, new HashSet()); root.add(myRoot); - final CheckboxTree.CheckboxTreeCellRenderer cellRenderer = new CheckboxTree.CheckboxTreeCellRenderer() { + final CheckboxTree.CheckboxTreeCellRenderer cellRenderer = new CheckboxTree.CheckboxTreeCellRenderer(true, false) { public void customizeCellRenderer(JTree tree, Object value, boolean selected, @@ -211,7 +212,7 @@ public abstract class CallerChooser extends DialogWrapper { } } }; - Tree tree = new CheckboxTree(cellRenderer, root); + Tree tree = new CheckboxTree(cellRenderer, root, new CheckboxTreeBase.CheckPolicy(false, false, true, false)); tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); tree.getSelectionModel().setSelectionPath(new TreePath(myRoot.getPath())); -- 2.11.4.GIT