Changeset 7005 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
- Timestamp:
- 2014-04-26T17:39:23+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
r6995 r7005 197 197 // Reload local styles when they have been changed in an external editor. 198 198 // Checks file modification time. 199 List<StyleSource> toReload = new ArrayList< StyleSource>();199 List<StyleSource> toReload = new ArrayList<>(); 200 200 for (StyleSource s : MapPaintStyles.getStyles().getStyleSources()) { 201 201 if (s.isLocal()) { … … 234 234 protected class StylesModel extends AbstractTableModel implements MapPaintSylesUpdateListener { 235 235 236 List<StyleSource> data = new ArrayList< StyleSource>();236 List<StyleSource> data = new ArrayList<>(); 237 237 238 238 public StylesModel() { 239 data = new ArrayList< StyleSource>(MapPaintStyles.getStyles().getStyleSources());239 data = new ArrayList<>(MapPaintStyles.getStyles().getStyleSources()); 240 240 } 241 241 … … 301 301 @Override 302 302 public void mapPaintStylesUpdated() { 303 data = new ArrayList< StyleSource>(MapPaintStyles.getStyles().getStyleSources());303 data = new ArrayList<>(MapPaintStyles.getStyles().getStyleSources()); 304 304 fireTableDataChanged(); 305 305 tblStyles.repaint(); … … 308 308 @Override 309 309 public void mapPaintStyleEntryUpdated(int idx) { 310 data = new ArrayList< StyleSource>(MapPaintStyles.getStyles().getStyleSources());310 data = new ArrayList<>(MapPaintStyles.getStyles().getStyleSources()); 311 311 fireTableRowsUpdated(idx, idx); 312 312 tblStyles.repaint();
Note:
See TracChangeset
for help on using the changeset viewer.