Changeset 7005 in josm for trunk/src/org/openstreetmap/josm/gui/MapStatus.java
- Timestamp:
- 2014-04-26T17:39:23+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r6992 r7005 196 196 private Thread thread; 197 197 198 private final List<StatusTextHistory> statusText = new ArrayList< StatusTextHistory>();198 private final List<StatusTextHistory> statusText = new ArrayList<>(); 199 199 200 200 private static class StatusTextHistory { … … 352 352 // These labels may need to be updated from the outside 353 353 // so collect them 354 List<JLabel> lbls = new ArrayList< JLabel>(osms.size());354 List<JLabel> lbls = new ArrayList<>(osms.size()); 355 355 for (final OsmPrimitive osm : osms) { 356 356 JLabel l = popupBuildPrimitiveLabels(osm); … … 720 720 private final JMenuItem jumpButton = add(Main.main.menu.jumpToAct); 721 721 722 private final Collection<JCheckBoxMenuItem> somItems = new ArrayList< JCheckBoxMenuItem>();722 private final Collection<JCheckBoxMenuItem> somItems = new ArrayList<>(); 723 723 724 724 private final JSeparator separator = new JSeparator(); … … 733 733 734 734 public MapStatusPopupMenu() { 735 for (final String key : new TreeSet< String>(SystemOfMeasurement.ALL_SYSTEMS.keySet())) {735 for (final String key : new TreeSet<>(SystemOfMeasurement.ALL_SYSTEMS.keySet())) { 736 736 JCheckBoxMenuItem item = new JCheckBoxMenuItem(new AbstractAction(key) { 737 737 @Override … … 830 830 if (Main.pref.getBoolean("statusbar.change-system-of-measurement-on-click", true)) { 831 831 distText.addMouseListener(new MouseAdapter() { 832 private final List<String> soms = new ArrayList< String>(new TreeSet<String>(SystemOfMeasurement.ALL_SYSTEMS.keySet()));832 private final List<String> soms = new ArrayList<>(new TreeSet<>(SystemOfMeasurement.ALL_SYSTEMS.keySet())); 833 833 834 834 @Override
Note:
See TracChangeset
for help on using the changeset viewer.