Changeset 15735 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-01-19T23:02:10+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r15657 r15735 267 267 268 268 private static void setSelection(DataSet ds, Collection<OsmPrimitive> toSet) { 269 toSet. stream().forEach(x -> updatePreservedFlag(x, true));269 toSet.forEach(x -> updatePreservedFlag(x, true)); 270 270 ds.setSelected(toSet); 271 271 } … … 334 334 DataSet ds = getLayerManager().getEditDataSet(); 335 335 if (ds != null) { 336 ds.getSelected(). stream().forEach(x -> updatePreservedFlag(x, false));336 ds.getSelected().forEach(x -> updatePreservedFlag(x, false)); 337 337 } 338 338 … … 387 387 // Make sure helper line is computed later (causes deadlock in selection event chain otherwise) 388 388 SwingUtilities.invokeLater(() -> { 389 event.getOldSelection(). stream().forEach(x -> updatePreservedFlag(x, false));390 event.getSelection(). stream().forEach(x -> updatePreservedFlag(x, true));389 event.getOldSelection().forEach(x -> updatePreservedFlag(x, false)); 390 event.getSelection().forEach(x -> updatePreservedFlag(x, true)); 391 391 if (MainApplication.getMap() != null) { 392 392 computeHelperLine(); -
trunk/src/org/openstreetmap/josm/command/AddPrimitivesCommand.java
r13173 r15735 97 97 } 98 98 } 99 newPrimitives. stream().forEach(p -> p.setModified(true));99 newPrimitives.forEach(p -> p.setModified(true)); 100 100 } else { // redo 101 101 // When redoing this command, we have to add the same objects, otherwise -
trunk/src/org/openstreetmap/josm/data/osm/TagCollection.java
r15716 r15735 267 267 public void remove(Collection<Tag> tags) { 268 268 if (tags != null) { 269 tags. stream().forEach(this::remove);269 tags.forEach(this::remove); 270 270 } 271 271 } … … 279 279 public void remove(TagCollection tags) { 280 280 if (tags != null) { 281 tags.tags.keySet(). stream().forEach(this::remove);281 tags.tags.keySet().forEach(this::remove); 282 282 } 283 283 } -
trunk/src/org/openstreetmap/josm/gui/layer/CustomizeColor.java
r15586 r15735 85 85 switch (answer) { 86 86 case 0: 87 colorLayers. stream().forEach(l -> l.setColor(c.getColor()));87 colorLayers.forEach(l -> l.setColor(c.getColor())); 88 88 break; 89 89 case 1: 90 90 return; 91 91 case 2: 92 colorLayers. stream().forEach(l -> l.setColor(null));92 colorLayers.forEach(l -> l.setColor(null)); 93 93 break; 94 94 } -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ChooseTrackVisibilityAction.java
r15586 r15735 151 151 switch (answer) { 152 152 case 0: 153 tracks. stream().forEach(t -> t.setColor(c.getColor()));153 tracks.forEach(t -> t.setColor(c.getColor())); 154 154 GPXSettingsPanel.putLayerPrefLocal(layer, "colormode", "0"); //set Colormode to none 155 155 break; … … 157 157 return; 158 158 case 2: 159 tracks. stream().forEach(t -> t.setColor(null));159 tracks.forEach(t -> t.setColor(null)); 160 160 break; 161 161 } -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/CustomizeDrawingAction.java
r15497 r15735 92 92 panel.savePreferences(); 93 93 MainApplication.getMainPanel().repaint(); 94 layers. stream().forEach(Layer::invalidate);94 layers.forEach(Layer::invalidate); 95 95 } 96 96 -
trunk/src/org/openstreetmap/josm/io/ValidatorErrorWriter.java
r12699 r15735 84 84 map.put(errorClass, list); 85 85 } 86 e2.getValue().values(). stream().forEach(list::addAll);86 e2.getValue().values().forEach(list::addAll); 87 87 } 88 88 } -
trunk/src/org/openstreetmap/josm/tools/bugreport/BugReport.java
r12770 r15735 158 158 159 159 private void fireChange() { 160 listeners. stream().forEach(l -> l.bugReportChanged(this));160 listeners.forEach(l -> l.bugReportChanged(this)); 161 161 } 162 162
Note:
See TracChangeset
for help on using the changeset viewer.