mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
narrow down fixes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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=<default>
|
||||
node.default.package=<Default Package>
|
||||
prompt.enter.a.new.package.name=Enter a new package name:
|
||||
|
||||
Reference in New Issue
Block a user