Changeset 33418 in osm for applications/editors
- Timestamp:
- 2017-06-28T18:11:42+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/EdgeSelectionAction.java
r33417 r33418 33 33 private static final long serialVersionUID = 2414977774504904238L; 34 34 35 private transient 35 private transient Set<Way> highlighted; 36 36 37 37 private Cursor selectionCursor; -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/SplitRoundaboutAction.java
r33417 r33418 91 91 } 92 92 93 private void continueAfterDownload(Way roundabout) 94 { 93 private void continueAfterDownload(Way roundabout) { 95 94 //make the roundabout round, if requested 96 95 if(Main.pref.getBoolean("pt_assistant.roundabout-splitter.alignalways") || -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/gui/PTAssistantLayer.java
r33417 r33418 263 263 } 264 264 265 if (event.getRemovedLayer() instanceof OsmDataLayer && event.getSource().getLayersOfType(OsmDataLayer.class).size() < 1) 265 if (event.getRemovedLayer() instanceof OsmDataLayer 266 && event.getSource().getLayersOfType(OsmDataLayer.class).isEmpty()) 266 267 event.scheduleRemoval(Collections.singleton(this)); 267 268 -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/gui/PTAssistantLayerManager.java
r33417 r33418 14 14 public class PTAssistantLayerManager implements SelectionChangedListener { 15 15 16 public final staticPTAssistantLayerManager PTLM = new PTAssistantLayerManager();16 public static final PTAssistantLayerManager PTLM = new PTAssistantLayerManager(); 17 17 private PTAssistantLayer layer; 18 18 -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/utils/RouteUtils.java
r33417 r33418 65 65 } 66 66 67 String 67 String[] acceptedRouteTags = new String[] { 68 68 "bus", "trolleybus", "share_taxi", 69 69 "tram", "light_rail", "subway", "train"}; … … 217 217 public static boolean isWaySuitableForBuses(Way way) { 218 218 219 String [] acceptedHighwayTags = new String[] {219 String[] acceptedHighwayTags = new String[] { 220 220 "motorway", "trunk", "primary", "secondary", "tertiary", 221 "unclassified" 221 "unclassified", "road", "residential", "service", 222 222 "motorway_link", "trunk_link", "primary_link", "secondary_link", 223 223 "tertiary_link", "living_street", "bus_guideway", "road"}; … … 241 241 public static boolean isWaySuitableForPublicTransport(Way way) { 242 242 243 String [] acceptedRailwayTags = new String[] {243 String[] acceptedRailwayTags = new String[] { 244 244 "tram", "subway", "light_rail", "rail"}; 245 245 -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/RouteChecker.java
r33417 r33418 100 100 for (int i = 0; i < links.size(); i++) { 101 101 final WayConnectionType link = links.get(i); 102 if(!(i == 0 || link.linkPrev) || !(i == links.size() - 1 || link.linkNext) 103 || link.direction == null || WayConnectionType.Direction.NONE.equals(link.direction)) { 102 if(!(i == 0 || link.linkPrev) 103 || !(i == links.size() - 1 104 || link.linkNext) 105 || link.direction == null 106 || WayConnectionType.Direction.NONE.equals(link.direction)) { 104 107 numberOfGaps++; 105 108 i++;
Note:
See TracChangeset
for help on using the changeset viewer.