Changeset 18593 in osm for applications/editors/josm/plugins/validator
- Timestamp:
- 2009-11-14T19:27:50+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/validator
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/build.xml
r18524 r18593 27 27 --> 28 28 <property name="commit.message" value="Updated build.xml" /> 29 <property name="plugin.main.version" value="24 14" />29 <property name="plugin.main.version" value="2450" /> 30 30 31 31 -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ErrorLayer.java
r17175 r18593 4 4 5 5 import java.awt.Component; 6 import java.awt.Graphics; 6 import java.awt.Graphics2D; 7 7 import java.util.Enumeration; 8 8 import java.util.List; … … 15 15 import org.openstreetmap.josm.Main; 16 16 import org.openstreetmap.josm.actions.RenameLayerAction; 17 import org.openstreetmap.josm.data.Bounds; 17 18 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 18 19 import org.openstreetmap.josm.gui.MapView; … … 27 28 /** 28 29 * A layer showing error messages. 29 * 30 * 30 31 * @author frsantos 31 32 */ … … 54 55 @SuppressWarnings("unchecked") 55 56 @Override 56 public void paint(final Graphics g, final MapView mv) { 57 public void paint(final Graphics2D g, final MapView mv, Bounds bounds) { 57 58 DefaultMutableTreeNode root = plugin.validationDialog.tree.getRoot(); 58 59 if (root == null || root.getChildCount() == 0) … … 114 115 public Component[] getMenuEntries() { 115 116 return new Component[] { new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)), 116 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)), 117 new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)), 117 118 new JSeparator(), 118 119 new JMenuItem(new RenameLayerAction(null, this)), new JSeparator(), -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/GridLayer.java
r17351 r18593 4 4 import java.awt.Component; 5 5 import java.awt.Graphics; 6 import java.awt.Graphics2D; 6 7 import java.awt.Point; 7 8 import java.awt.geom.Point2D; … … 13 14 import org.openstreetmap.josm.Main; 14 15 import org.openstreetmap.josm.actions.RenameLayerAction; 16 import org.openstreetmap.josm.data.Bounds; 15 17 import org.openstreetmap.josm.data.coor.EastNorth; 16 18 import org.openstreetmap.josm.data.osm.Node; … … 54 56 */ 55 57 @Override 56 public void paint(final Graphics g, final MapView mv) 58 public void paint(final Graphics2D g, final MapView mv, Bounds bounds) 57 59 { 58 60 if( !Main.pref.hasKey(PreferenceEditor.PREF_DEBUG + ".grid") ) -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/Test.java
r18514 r18593 1 1 package org.openstreetmap.josm.plugins.validator; 2 3 import static org.openstreetmap.josm.tools.I18n.tr; 2 4 3 5 import java.util.ArrayList; … … 8 10 import javax.swing.JPanel; 9 11 10 import org.openstreetmap.josm.Main;11 12 import org.openstreetmap.josm.command.Command; 12 13 import org.openstreetmap.josm.data.osm.BackreferencedDataSet; … … 19 20 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 20 21 import org.openstreetmap.josm.tools.GBC; 21 import static org.openstreetmap.josm.tools.I18n.tr;22 22 23 23 /** … … 95 95 96 96 /** 97 * Start the test using a given progress monitor 98 * 99 * @param progressMonitor the progress monitor 97 * Start the test using a given progress monitor 98 * 99 * @param progressMonitor the progress monitor 100 100 */ 101 101 public void startTest(ProgressMonitor progressMonitor) { -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicateNode.java
r18514 r18593 5 5 import java.awt.geom.Area; 6 6 import java.util.Collection; 7 import java.util.LinkedHashSet; 7 8 import java.util.LinkedList; 8 import java.util.LinkedHashSet;9 9 import java.util.List; 10 10 import java.util.Map; -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UnconnectedWays.java
r18425 r18593 19 19 import org.openstreetmap.josm.data.coor.EastNorth; 20 20 import org.openstreetmap.josm.data.coor.LatLon; 21 import org.openstreetmap.josm.data.osm.BBox; 21 22 import org.openstreetmap.josm.data.osm.DataSet; 22 23 import org.openstreetmap.josm.data.osm.Node; … … 24 25 import org.openstreetmap.josm.data.osm.QuadBuckets; 25 26 import org.openstreetmap.josm.data.osm.Way; 26 import org.openstreetmap.josm.data.osm.QuadBuckets.BBox;27 27 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 28 28 import org.openstreetmap.josm.plugins.validator.PreferenceEditor; … … 75 75 this.ds = Main.main.getCurrentDataSet(); 76 76 this.ds_area = ds.getDataSourceArea(); 77 this.ds.reindexAll(); 78 } 77 } 79 78 80 79 @Override … … 196 195 private class MyWaySegment 197 196 { 198 private Line2D line; 199 public Way w; 200 public boolean isAbandoned = false;201 public boolean isBoundary = false;202 public boolean highway; 203 private double len; 197 private final Line2D line; 198 public final Way w; 199 public final boolean isAbandoned; 200 public final boolean isBoundary; 201 public final boolean highway; 202 private final double len; 204 203 private Set<Node> nearbyNodeCache; 205 204 double nearbyNodeCacheDist = -1.0; 206 Node n1; 207 Node n2; 205 final Node n1; 206 final Node n2; 208 207 209 208 public MyWaySegment(Way w, Node n1, Node n2) … … 368 367 private void addNode(Node n, Set<Node> s) 369 368 { 370 Boolean m = middlenodes.contains(n);371 Boolean e = endnodes.contains(n);372 Boolean eh = endnodes_highway.contains(n);373 Boolean o = othernodes.contains(n);369 boolean m = middlenodes.contains(n); 370 boolean e = endnodes.contains(n); 371 boolean eh = endnodes_highway.contains(n); 372 boolean o = othernodes.contains(n); 374 373 if(!m && !e && !o && !eh) 375 374 s.add(n);
Note:
See TracChangeset
for help on using the changeset viewer.