Changeset 23192 in osm for applications/editors/josm/plugins/validator/src
- Timestamp:
- 2010-09-15T18:59:53+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/OSMValidatorPlugin.java
r21616 r23192 111 111 */ 112 112 public OSMValidatorPlugin(PluginInformation info) { 113 113 super(info); 114 114 checkPluginDir(); 115 115 initializeGridDetail(); … … 175 175 MapView.addLayerChangeListener(this); 176 176 } else 177 177 MapView.removeLayerChangeListener(this); 178 178 if (newFrame != null) { 179 179 UploadAction.registerUploadHook(uploadHook = new ValidateUploadHook(this)); 180 180 } else { 181 182 181 UploadAction.unregisterUploadHook(uploadHook); 182 uploadHook = null; 183 183 } 184 184 } … … 280 280 e.printStackTrace(); 281 281 JOptionPane.showMessageDialog(Main.parent, 282 282 tr("Error initializing test {0}:\n {1}", test.getClass() 283 283 .getSimpleName(), e), 284 284 tr("Error"), … … 306 306 307 307 public void layerRemoved(Layer oldLayer) { 308 309 310 311 308 if (oldLayer == errorLayer) { 309 errorLayer = null; 310 return; 311 } 312 312 layerErrors.remove(oldLayer); 313 313 if (Main.map.mapView.getLayersOfType(OsmDataLayer.class).isEmpty()) { 314 315 316 314 if (errorLayer != null) { 315 Main.map.mapView.removeLayer(errorLayer); 316 } 317 317 } 318 318 } -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/PreferenceEditor.java
r20828 r23192 22 22 /** 23 23 * Preference settings for the validator plugin 24 * 24 * 25 25 * @author frsantos 26 26 */ … … 52 52 /** 53 53 * The preferences key for enabling the permanent filtering 54 * of the displayed errors in the tree regarding the current selection 54 * of the displayed errors in the tree regarding the current selection 55 55 */ 56 56 public static final String PREF_FILTER_BY_SELECTION = PREFIX + ".selectionFilter"; -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/Coastlines.java
r20828 r23192 47 47 public void startTest(ProgressMonitor monitor) 48 48 { 49 49 super.startTest(monitor); 50 50 51 51 OsmDataLayer layer = Main.map.mapView.getEditLayer(); -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/CrossingWays.java
r20828 r23192 53 53 public void startTest(ProgressMonitor monitor) 54 54 { 55 55 super.startTest(monitor); 56 56 cellSegments = new HashMap<Point2D,List<ExtendedSegment>>(1000); 57 57 errorSegments = new HashSet<WaySegment>(); … … 62 62 public void endTest() 63 63 { 64 64 super.endTest(); 65 65 cellSegments = null; 66 66 errorSegments = null; -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicateWay.java
r22714 r23192 70 70 public void startTest(ProgressMonitor monitor) 71 71 { 72 72 super.startTest(monitor); 73 73 ways = new Bag<WayPair, OsmPrimitive>(1000); 74 74 } … … 77 77 public void endTest() 78 78 { 79 79 super.endTest(); 80 80 for(List<OsmPrimitive> duplicated : ways.values() ) 81 81 { -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicatedWayNodes.java
r20828 r23192 50 50 for (Node n : w.getNodes()) { 51 51 if (lastN == null) { 52 52 wnew.addNode(n); 53 53 } else if (n == lastN) { 54 54 // Skip this node 55 55 } else { 56 56 wnew.addNode(n); 57 57 } 58 58 lastN = n; -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/NameMismatch.java
r20828 r23192 74 74 tr("A name is missing, even though name:* exists."), 75 75 NAME_MISSING, p)); 76 77 76 return; 77 } 78 78 79 79 if (names.contains(name)) return; -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/OverlappingWays.java
r20828 r23192 52 52 public void startTest(ProgressMonitor monitor) 53 53 { 54 54 super.startTest(monitor); 55 55 nodePairs = new Bag<Pair<Node,Node>, WaySegment>(1000); 56 56 } -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/SimilarNamedWays.java
r20828 r23192 44 44 public void startTest(ProgressMonitor monitor) 45 45 { 46 46 super.startTest(monitor); 47 47 cellWays = new HashMap<Point2D,List<Way>>(1000); 48 48 errorWays = new Bag<Way, Way>(); -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/WronglyOrderedWays.java
r20828 r23192 40 40 public void startTest(ProgressMonitor monitor) 41 41 { 42 42 super.startTest(monitor); 43 43 _errorWays = new Bag<Way, Way>(); 44 44 }
Note:
See TracChangeset
for help on using the changeset viewer.