From 624768bc4f40d4a344edd829da548ad70221b2c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Raszuk?= Date: Wed, 18 Sep 2024 02:45:40 +0200 Subject: [PATCH] Remove confusing (tags/geometry) strings --- .../gui/ImportedBuildingOverlappingOptionDialog.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/openstreetmap/josm/plugins/plbuildings/gui/ImportedBuildingOverlappingOptionDialog.java b/src/main/java/org/openstreetmap/josm/plugins/plbuildings/gui/ImportedBuildingOverlappingOptionDialog.java index fe30ca2..aae6209 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/plbuildings/gui/ImportedBuildingOverlappingOptionDialog.java +++ b/src/main/java/org/openstreetmap/josm/plugins/plbuildings/gui/ImportedBuildingOverlappingOptionDialog.java @@ -15,14 +15,8 @@ public class ImportedBuildingOverlappingOptionDialog { public static CombineNearestOverlappingStrategy show(String geomDs, String tagsDs, double overlapPercentage) { ArrayList> choicesPairs = new ArrayList<>(Arrays.asList( Pair.create(CombineNearestOverlappingStrategy.MERGE_BOTH, tr("Merge both")), - Pair.create( - CombineNearestOverlappingStrategy.ACCEPT_GEOMETRY_SOURCE, - String.format(tr("Use %s (geometry)"), geomDs) - ), - Pair.create( - CombineNearestOverlappingStrategy.ACCEPT_TAGS_SOURCE, - String.format(tr("Use %s (tags)"), tagsDs) - ), + Pair.create(CombineNearestOverlappingStrategy.ACCEPT_GEOMETRY_SOURCE, String.format(tr("Use %s"), geomDs)), + Pair.create(CombineNearestOverlappingStrategy.ACCEPT_TAGS_SOURCE, String.format(tr("Use %s"), tagsDs)), Pair.create(CombineNearestOverlappingStrategy.CANCEL, tr("Cancel")) )); Object[] choices = choicesPairs.stream().map(pair -> pair.b).toArray();