Changeset 32233 in osm for applications/editors/josm/plugins/pt_assistant/src
- Timestamp:
- 2016-06-14T01:38:13+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/PTAssistantPlugin.java
r32230 r32233 9 9 import org.openstreetmap.josm.data.osm.RelationMember; 10 10 import org.openstreetmap.josm.data.validation.OsmValidator; 11 import org.openstreetmap.josm.data.validation.TestError; 11 12 import org.openstreetmap.josm.plugins.Plugin; 12 13 import org.openstreetmap.josm.plugins.PluginInformation; 13 14 import org.openstreetmap.josm.plugins.pt_assistant.validation.DirectionTest; 14 15 import org.openstreetmap.josm.plugins.pt_assistant.validation.GapTest; 16 import org.openstreetmap.josm.plugins.pt_assistant.validation.PTAssitantValidatorTest; 15 17 import org.openstreetmap.josm.plugins.pt_assistant.validation.PlatformsFirstTest; 16 18 import org.openstreetmap.josm.plugins.pt_assistant.validation.RoadTypeTest; … … 34 36 super(info); 35 37 36 OsmValidator.addTest(PlatformsFirstTest.class); 37 OsmValidator.addTest(RoadTypeTest.class); 38 OsmValidator.addTest(DirectionTest.class); 39 OsmValidator.addTest(GapTest.class); 38 // OsmValidator.addTest(PlatformsFirstTest.class); 39 // OsmValidator.addTest(RoadTypeTest.class); 40 // OsmValidator.addTest(DirectionTest.class); 41 // OsmValidator.addTest(GapTest.class); 42 43 OsmValidator.addTest(PTAssitantValidatorTest.class); 44 40 45 41 46 } -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/utils/RouteUtils.java
r32232 r32233 10 10 11 11 import org.openstreetmap.josm.actions.DownloadPrimitiveAction; 12 import org.openstreetmap.josm.data.osm.OsmPrimitive; 12 13 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 13 14 import org.openstreetmap.josm.data.osm.PrimitiveId; … … 161 162 || (rm.isRelation() && rm.getRelation().isIncomplete())) { 162 163 isComplete = false; 164 163 165 break; 166 164 167 } 165 168 } … … 193 196 // if the user does want to fetch: 194 197 if (userInput == 0 || askToFetch == ASK_TO_FETCH.DONT_ASK_AND_FETCH) { 195 List<PrimitiveId> list = new ArrayList<>(1); 196 list.add(r); 197 DownloadPrimitiveAction.processItems(false, list, false, true); 198 // List<PrimitiveId> list = new ArrayList<>(1); 199 // list.add(r); 200 List<PrimitiveId> list = new ArrayList<>(); 201 for (OsmPrimitive primitive: r.getIncompleteMembers()) { 202 list.add(primitive); 203 } 204 205 Thread t = new Thread (new IncompleteMembersDownloader(list)); 206 t.run(); 207 try { 208 t.join(); 209 } catch (InterruptedException e) { 210 // TODO Auto-generated catch block 211 e.printStackTrace(); 212 } 213 214 215 216 // DownloadPrimitiveAction.processItems(false, list, false, true); 217 JOptionPane.showMessageDialog(null, "download expected to be finished"); 198 218 isComplete = true; 199 219 lastRelationToFetch = r; … … 233 253 // return "don't ask and don't fetch"; 234 254 // } 255 235 256 236 257 } 258 259
Note:
See TracChangeset
for help on using the changeset viewer.