Changeset 11017 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java
- Timestamp:
- 2016-09-17T23:28:38+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/projection/ProjectionPreference.java
r10611 r11017 2 2 package org.openstreetmap.josm.gui.preferences.projection; 3 3 4 import static org.openstreetmap.josm.data.SystemOfMeasurement.ALL_SYSTEMS; 4 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 … … 271 272 private static final CollectionProperty PROP_SUB_PROJECTION = new CollectionProperty("projection.sub", null); 272 273 public static final StringProperty PROP_SYSTEM_OF_MEASUREMENT = new StringProperty("system_of_measurement", "Metric"); 273 private static final String[] unitsValues = (new ArrayList<>(SystemOfMeasurement.ALL_SYSTEMS.keySet())).toArray(new String[0]);274 private static final String[] unitsValues = ALL_SYSTEMS.keySet().toArray(new String[ALL_SYSTEMS.size()]); 274 275 private static final String[] unitsValuesTr = new String[unitsValues.length]; 275 276 static { … … 282 283 * Combobox with all projections available 283 284 */ 284 private final JosmComboBox<ProjectionChoice> projectionCombo = new JosmComboBox<>(projectionChoices.toArray(new ProjectionChoice[0])); 285 private final JosmComboBox<ProjectionChoice> projectionCombo = new JosmComboBox<>( 286 projectionChoices.toArray(new ProjectionChoice[projectionChoices.size()])); 285 287 286 288 /**
Note:
See TracChangeset
for help on using the changeset viewer.