From 55b1820b240147592f91783da137190052d8d9b8 Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Mon, 23 Dec 2024 10:33:13 +1100 Subject: [PATCH] Update SearchDialog.java to show hint for key is null The current example of "key=" is not working for me for me and don't make a lot of sense. can a key even exist without a value? A more common scenario is searching for objects missing a key, which I've changed this hint to. --- src/org/openstreetmap/josm/gui/dialogs/SearchDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/openstreetmap/josm/gui/dialogs/SearchDialog.java b/src/org/openstreetmap/josm/gui/dialogs/SearchDialog.java index 444f4e90d6d..13dc797ea3c 100644 --- a/src/org/openstreetmap/josm/gui/dialogs/SearchDialog.java +++ b/src/org/openstreetmap/josm/gui/dialogs/SearchDialog.java @@ -325,7 +325,7 @@ private static JPanel buildHintsSection(AutoCompComboBox hcbSearc .addKeyword("key=value", null, tr("''key'' with exactly ''value''")) .addKeyword("key~regexp", null, tr("value of ''key'' matching the regular expression ''regexp''")) .addKeyword("key=*", null, tr("''key'' with any value")) - .addKeyword("key=", null, tr("''key'' with empty value")) + .addKeyword("key is null", null, tr("matches if ''key'' does not exist")) .addKeyword("*=value", null, tr("''value'' in any key")) .addKeyword("key>value", null, tr("matches if ''key'' is greater than ''value'' (analogously, less than)")) .addKeyword("\"key\"=\"value\"", "\"\"=\"\"",