Changeset 16441 in josm for trunk/src/org
- Timestamp:
- 2020-05-17T15:57:50+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
r16438 r16441 247 247 */ 248 248 private static List<Node> collectNodesWithExternReferers(List<Way> ways) { 249 List<Node> withReferrers = ways.stream().flatMap(w -> w.getNodes().stream()).filter(n -> n.getReferrers().size() > 1).collect(Collectors.toList()); 250 return withReferrers; 249 return ways.stream().flatMap(w -> w.getNodes().stream()).filter(n -> n.getReferrers().size() > 1).collect(Collectors.toList()); 251 250 } 252 251 -
trunk/src/org/openstreetmap/josm/actions/relation/AddSelectionToRelations.java
r16438 r16441 43 43 public void actionPerformed(ActionEvent e) { 44 44 Collection<Command> cmds = Utils.filteredCollection(relations, Relation.class).stream() 45 .map( orig -> GenericRelationEditor.addPrimitivesToRelation(orig, MainApplication.getLayerManager().getActiveDataSet().getSelected()))45 .map(r -> GenericRelationEditor.addPrimitivesToRelation(r, MainApplication.getLayerManager().getActiveDataSet().getSelected())) 46 46 .filter(Objects::nonNull) 47 47 .collect(StreamUtils.toUnmodifiableList()); -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManager.java
r16436 r16441 285 285 tblChangesets.setTransferHandler(new TransferHandler() { 286 286 @Override 287 public void exportToClipboard(JComponent comp, Clipboard clip, int action) throws IllegalStateException{287 public void exportToClipboard(JComponent comp, Clipboard clip, int action) { 288 288 List<Changeset> changesets = model.getSelectedChangesets(); 289 289 ChangesetTransferable transferable = new ChangesetTransferable(changesets); -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r16438 r16441 411 411 protected int checkTableSelection(JTable table, Point p) { 412 412 int row = super.checkTableSelection(table, p); 413 List<IRelation<?>> rels = Arrays.stream(table.getSelectedRows()).mapToObj(i -> (IRelation<?>) table.getValueAt(i, 0)).collect(Collectors.toList()); 413 List<IRelation<?>> rels = Arrays.stream(table.getSelectedRows()) 414 .mapToObj(i -> (IRelation<?>) table.getValueAt(i, 0)) 415 .collect(Collectors.toList()); 414 416 membershipMenuHandler.setPrimitives(rels); 415 417 return row;
Note:
See TracChangeset
for help on using the changeset viewer.