From 8f31a515819646dc922110ae2c66bd0032dd31bf Mon Sep 17 00:00:00 2001 From: "Denis.Zhdanov" Date: Tue, 21 Aug 2012 19:33:04 +0400 Subject: [PATCH] IDEA-19061 Integrate the Rearranger-plugin into core-IDEA Auto-expanding nodes added during rules editing --- .../options/codeStyle/arrangement/ArrangementRuleTree.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/ArrangementRuleTree.java b/platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/ArrangementRuleTree.java index d8bb30c62e10..be8915f2961c 100644 --- a/platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/ArrangementRuleTree.java +++ b/platform/lang-impl/src/com/intellij/application/options/codeStyle/arrangement/ArrangementRuleTree.java @@ -297,6 +297,8 @@ public class ArrangementRuleTree { } private void onModelChange(@NotNull ArrangementTreeNode topMost, @NotNull ArrangementTreeNode bottomMost) { + expandAll(myTree, new TreePath(topMost.getPath())); + mySelectionModel.clearSelection(); mySkipSelectionChange = true; try { for (ArrangementTreeNode node = bottomMost; node != null; node = node.getParent()) {