- Timestamp:
- 2017-11-22T01:49:53+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DefaultNameFormatter.java
r12846 r13142 186 186 preset.nameTemplate.appendText(name, node); 187 187 } 188 if (node.getCoor() != null) { 189 name.append(" \u200E(").append(CoordinateFormatManager.getDefaultFormat().latToString(node)).append(", ") 188 if (node.isLatLonKnown() && Config.getPref().getBoolean("osm-primitives.showcoor")) { 189 name.append(" \u200E(") 190 .append(CoordinateFormatManager.getDefaultFormat().latToString(node)).append(", ") 190 191 .append(CoordinateFormatManager.getDefaultFormat().lonToString(node)).append(')'); 191 192 } 192 193 } 193 194 decorateNameWithId(name, node); 194 195 195 196 196 String result = name.toString(); -
trunk/src/org/openstreetmap/josm/gui/preferences/display/LafPreference.java
r12846 r13142 82 82 private final JCheckBox showSplashScreen = new JCheckBox(tr("Show splash screen at startup")); 83 83 private final JCheckBox showID = new JCheckBox(tr("Show object ID in selection lists")); 84 private final JCheckBox showCoor = new JCheckBox(tr("Show node coordinates in selection lists")); 84 85 private final JCheckBox showLocalizedName = new JCheckBox(tr("Show localized name in selection lists")); 85 86 private final JCheckBox modeless = new JCheckBox(tr("Modeless working (Potlatch style)")); … … 132 133 showID.setSelected(Config.getPref().getBoolean("osm-primitives.showid", false)); 133 134 135 // Show Coordinates in selection 136 showCoor.setToolTipText(tr("Show node coordinates in selection lists")); 137 showCoor.setSelected(Config.getPref().getBoolean("osm-primitives.showcoor", false)); 138 134 139 // Show localized names 135 140 showLocalizedName.setToolTipText(tr("Show localized name in selection lists, if available")); … … 142 147 143 148 panel.add(showID, GBC.eop().insets(20, 0, 0, 0)); 149 panel.add(showCoor, GBC.eop().insets(20, 0, 0, 0)); 144 150 panel.add(showLocalizedName, GBC.eop().insets(20, 0, 0, 0)); 145 151 panel.add(modeless, GBC.eop().insets(20, 0, 0, 0)); … … 205 211 Config.getPref().putBoolean("draw.splashscreen", showSplashScreen.isSelected()); 206 212 Config.getPref().putBoolean("osm-primitives.showid", showID.isSelected()); 213 Config.getPref().putBoolean("osm-primitives.showcoor", showCoor.isSelected()); 207 214 Config.getPref().putBoolean("osm-primitives.localize-name", showLocalizedName.isSelected()); 208 215 MapFrame.MODELESS.put(modeless.isSelected());
Note:
See TracChangeset
for help on using the changeset viewer.