From cb76ea3053577dc8ff037f105d211b439595c5e5 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Fri, 30 Dec 2011 16:57:38 +0100 Subject: [PATCH] narrow down fixes --- .../src/com/intellij/ide/util/FileStructurePopup.java | 8 ++++---- .../src/messages/IdeBundle.properties | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/ide/util/FileStructurePopup.java b/platform/lang-impl/src/com/intellij/ide/util/FileStructurePopup.java index dab36ac311a9..1828aa7dd08f 100644 --- a/platform/lang-impl/src/com/intellij/ide/util/FileStructurePopup.java +++ b/platform/lang-impl/src/com/intellij/ide/util/FileStructurePopup.java @@ -82,7 +82,7 @@ public class FileStructurePopup implements Disposable { private final MyTreeActionsOwner myTreeActionsOwner; private JBPopup myPopup; - @NonNls private static final String ourPropertyKey = "FileStructure.narrowDown"; + @NonNls private static final String narrowDownPropertyKey = "FileStructurePopup.narrowDown"; private boolean myShouldNarrowDown = false; private Tree myTree; private FilteringTreeBuilder myAbstractTreeBuilder; @@ -390,12 +390,12 @@ public class FileStructurePopup implements Disposable { } private JComponent createSouthPanel() { - final JCheckBox checkBox = new JCheckBox(IdeBundle.message("checkbox.narrow.down.the.list.on.typing")); - checkBox.setSelected(PropertiesComponent.getInstance().isTrueValue(ourPropertyKey)); + final JCheckBox checkBox = new JCheckBox(IdeBundle.message("checkbox.narrow.down.on.typing")); + checkBox.setSelected(PropertiesComponent.getInstance().getBoolean(narrowDownPropertyKey, true)); checkBox.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { myShouldNarrowDown = checkBox.isSelected(); - PropertiesComponent.getInstance().setValue(ourPropertyKey, Boolean.toString(myShouldNarrowDown)); + PropertiesComponent.getInstance().setValue(narrowDownPropertyKey, Boolean.toString(myShouldNarrowDown)); myAbstractTreeBuilder.queueUpdate(); } diff --git a/platform/platform-resources-en/src/messages/IdeBundle.properties b/platform/platform-resources-en/src/messages/IdeBundle.properties index 23d64f345571..c8b3930184e7 100644 --- a/platform/platform-resources-en/src/messages/IdeBundle.properties +++ b/platform/platform-resources-en/src/messages/IdeBundle.properties @@ -800,6 +800,7 @@ action.show.classes=Show Classes action.expand.all=Expand All action.collapse.all=Collapse All checkbox.narrow.down.the.list.on.typing=&Narrow &&down the list on typing +checkbox.narrow.down.on.typing=&Narrow &&down on typing node.default= node.default.package= prompt.enter.a.new.package.name=Enter a new package name: