Changeset 33265 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/actions
- Timestamp:
- 2017-04-17T19:27:17+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/FindRelationAction.java
r32398 r33265 202 202 * I admit, some of it was copypasted from {@link org.openstreetmap.josm.gui.dialogs.RelationListDialog.RelationListModel}. 203 203 */ 204 protected class FindRelationListModel extends AbstractListModel<Relation> { 204 protected static class FindRelationListModel extends AbstractListModel<Relation> { 205 205 private final ArrayList<Relation> relations = new ArrayList<>(); 206 206 private DefaultListSelectionModel selectionModel; -
applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ReconstructPolygonAction.java
r33060 r33265 90 90 for (JoinedPolygon p : mpc.outerWays) { 91 91 92 ArrayList<JoinedPolygon> myInnerWays = new ArrayList< JoinedPolygon>();92 ArrayList<JoinedPolygon> myInnerWays = new ArrayList<>(); 93 93 for (JoinedPolygon i : mpc.innerWays) { 94 94 // if the first point of any inner ring is contained in this 95 // outer ring, then this inner ring belongs to us. This 95 // outer ring, then this inner ring belongs to us. This 96 96 // assumption only works if multipolygons have valid geometries 97 97 EastNorth en = i.ways.get(0).firstNode().getEastNorth(); … … 102 102 103 103 if (!myInnerWays.isEmpty()) { 104 // this ring has inner rings, so we leave a multipolygon in 105 // place and don't reconstruct the rings. 104 // this ring has inner rings, so we leave a multipolygon in 105 // place and don't reconstruct the rings. 106 106 Relation n = null; 107 107 if (relationReused) { … … 131 131 132 132 // move all tags from relation and common tags from ways 133 // start with all tags from first way but only if area tags are 134 // present 133 // start with all tags from first way but only if area tags are present 135 134 Map<String, String> tags = p.ways.get(0).getKeys(); 136 135 if (!p.ways.get(0).hasAreaTags()) { … … 209 208 if (newRelation == null || !"multipolygon".equals(newRelation.get("type")) || newRelation.getMembersCount() == 0) 210 209 return false; 211 else {210 else 212 211 return true; 213 }214 212 } 215 213 }
Note:
See TracChangeset
for help on using the changeset viewer.