Changeset 22004 in osm for applications/editors/josm
- Timestamp:
- 2010-06-25T10:38:59+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidatorDialog.java
r20828 r22004 34 34 35 35 import org.openstreetmap.josm.Main; 36 import org.openstreetmap.josm.actions.AutoScaleAction; 36 37 import org.openstreetmap.josm.command.Command; 37 38 import org.openstreetmap.josm.data.SelectionChangedListener; … … 386 387 if (isDblClick) { 387 388 Main.main.getCurrentDataSet().setSelected(sel); 389 if(Main.pref.getBoolean("validator.autozoom", false)) 390 AutoScaleAction.zoomTo(sel); 388 391 } 389 392 } -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedNode.java
r20828 r22004 26 26 { 27 27 protected static int UNTAGGED_NODE = 201; 28 protected static int COMMENT_NODE = 202; 28 29 29 30 /** Bag of all nodes */ … … 68 69 for(Node node : emptyNodes) 69 70 { 70 errors.add( new TestError(this, Severity.OTHER, tr("Untagged and unconnected nodes"), UNTAGGED_NODE, node) ); 71 if(node.hasKeys()) 72 errors.add( new TestError(this, Severity.OTHER, tr("Untagged and unconnected nodes (commented)"), COMMENT_NODE, node) ); 73 else 74 errors.add( new TestError(this, Severity.OTHER, tr("Untagged and unconnected nodes"), UNTAGGED_NODE, node) ); 71 75 } 72 76 emptyNodes = null; -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UntaggedWay.java
r20828 r22004 37 37 /** Unnamed junction error */ 38 38 protected static final int UNNAMED_JUNCTION = 305; 39 /** Untagged, but commented way error */ 40 protected static final int COMMENTED_WAY = 306; 39 41 40 42 private LinkedList<Way> multipolygonways; … … 99 101 if(!w.isTagged() && !multipolygonways.contains(w)) 100 102 { 101 errors.add( new TestError(this, Severity.WARNING, tr("Untagged ways"), UNTAGGED_WAY, w) ); 103 if(w.hasKeys()) 104 errors.add( new TestError(this, Severity.WARNING, tr("Untagged ways (commented)"), COMMENTED_WAY, w) ); 105 else 106 errors.add( new TestError(this, Severity.WARNING, tr("Untagged ways"), UNTAGGED_WAY, w) ); 102 107 } 103 108
Note:
See TracChangeset
for help on using the changeset viewer.