- Timestamp:
- 2017-06-12T00:14:29+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/ConditionalKeys.java
r12390 r12402 70 70 71 71 /** 72 * Checks if the key denotes a <a href="http://wiki.openstreetmap.org/wiki/Key:access#Transport_mode_restrictions">transport access mode restriction</a> 72 * Checks if the key denotes a 73 * <a href="http://wiki.openstreetmap.org/wiki/Key:access#Transport_mode_restrictions">transport access mode restriction</a> 73 74 * @param part The key (or the restriction part of it, e.g. for lanes) 74 75 * @return <code>true</code> if it is a restriction -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityAction.java
r12396 r12402 544 544 private final HashMap<Color, JPanel> panels = new HashMap<>(); 545 545 546 publicColorSelector() {546 ColorSelector() { 547 547 super(new GridBagLayout()); 548 548 add(new JLabel(tr("Color")), GBC.eol().insets(24 + 10, 0, 0, 0)); … … 564 564 public void mouseClicked(MouseEvent e) { 565 565 List<Layer> layers = model.getSelectedLayers(); 566 for(Layer l : layers) { 566 for (Layer l : layers) { 567 567 if (l instanceof GpxLayer) { 568 568 l.getColorProperty().put(color); … … 579 579 public void updateLayers(List<Layer> layers, boolean allVisible, boolean allHidden) { 580 580 List<Color> colors = layers.stream().filter(l -> l instanceof GpxLayer) 581 .map(l -> ((GpxLayer)l).getColorProperty().get()) 581 .map(l -> ((GpxLayer) l).getColorProperty().get()) 582 582 .distinct() 583 583 .collect(Collectors.toList());
Note:
See TracChangeset
for help on using the changeset viewer.