[josm-plugins] 69/369: Backporting plugin validator

Bas Couwenberg sebastic at xs4all.nl
Sat Oct 18 12:03:26 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch master
in repository josm-plugins.

commit a5b95e8dad281f83454a8a437fe2089150178336
Author: Giovanni Mascellani <mascellani at poisson.phc.unipi.it>
Date:   Sun Jun 7 13:40:30 2009 +0000

    Backporting plugin validator
---
 debian/patches/50_validator.dpatch | 86 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 85 insertions(+), 1 deletion(-)

diff --git a/debian/patches/50_validator.dpatch b/debian/patches/50_validator.dpatch
index 2f81e2f..11e701f 100755
--- a/debian/patches/50_validator.dpatch
+++ b/debian/patches/50_validator.dpatch
@@ -7,7 +7,7 @@
 @DPATCH@
 diff -urNad trunk~/validator/build.xml trunk/validator/build.xml
 --- trunk~/validator/build.xml	2009-03-08 14:39:18.000000000 +0100
-+++ trunk/validator/build.xml	2009-04-05 01:24:52.000000000 +0200
++++ trunk/validator/build.xml	2009-06-07 15:38:06.000000000 +0200
 @@ -14,7 +14,7 @@
              <compilerarg value="-Xlint:unchecked"/>
          </javac>
@@ -17,3 +17,87 @@ diff -urNad trunk~/validator/build.xml trunk/validator/build.xml
          <copy todir="${plugin.build.dir}/images">
              <fileset dir="images"/>
          </copy>
+diff -urNad trunk~/validator/src/org/openstreetmap/josm/plugins/validator/GridLayer.java trunk/validator/src/org/openstreetmap/josm/plugins/validator/GridLayer.java
+--- trunk~/validator/src/org/openstreetmap/josm/plugins/validator/GridLayer.java	2009-02-01 21:50:42.000000000 +0100
++++ trunk/validator/src/org/openstreetmap/josm/plugins/validator/GridLayer.java	2009-06-07 15:39:26.000000000 +0200
+@@ -12,7 +12,7 @@
+ import org.openstreetmap.josm.data.coor.EastNorth;
+ import org.openstreetmap.josm.data.osm.*;
+ import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
+-import org.openstreetmap.josm.data.osm.visitor.Visitor;
++import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
+ import org.openstreetmap.josm.gui.MapView;
+ import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
+ import org.openstreetmap.josm.gui.dialogs.LayerListPopup;
+@@ -129,7 +129,7 @@
+     /**
+      * Visitor that highlights all cells the selected primitives go through
+      */
+-    class HighlightCellVisitor implements Visitor
++    class HighlightCellVisitor extends AbstractVisitor
+     {
+         /** The MapView */
+         private final MapView mv;
+diff -urNad trunk~/validator/src/org/openstreetmap/josm/plugins/validator/Test.java trunk/validator/src/org/openstreetmap/josm/plugins/validator/Test.java
+--- trunk~/validator/src/org/openstreetmap/josm/plugins/validator/Test.java	2009-03-08 14:39:18.000000000 +0100
++++ trunk/validator/src/org/openstreetmap/josm/plugins/validator/Test.java	2009-06-07 15:39:26.000000000 +0200
+@@ -12,7 +12,7 @@
+ import org.openstreetmap.josm.data.osm.OsmPrimitive;
+ import org.openstreetmap.josm.data.osm.Relation;
+ import org.openstreetmap.josm.data.osm.Way;
+-import org.openstreetmap.josm.data.osm.visitor.Visitor;
++import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
+ import org.openstreetmap.josm.tools.GBC;
+ 
+ /**
+@@ -24,7 +24,7 @@
+  *
+  * @author frsantos
+  */
+-public class Test implements Visitor
++public class Test extends AbstractVisitor
+ {
+     /** Name of the test */
+     protected String name;
+diff -urNad trunk~/validator/src/org/openstreetmap/josm/plugins/validator/TestError.java trunk/validator/src/org/openstreetmap/josm/plugins/validator/TestError.java
+--- trunk~/validator/src/org/openstreetmap/josm/plugins/validator/TestError.java	2009-02-01 21:50:42.000000000 +0100
++++ trunk/validator/src/org/openstreetmap/josm/plugins/validator/TestError.java	2009-06-07 15:39:26.000000000 +0200
+@@ -14,7 +14,7 @@
+ import org.openstreetmap.josm.data.osm.Relation;
+ import org.openstreetmap.josm.data.osm.Way;
+ import org.openstreetmap.josm.data.osm.WaySegment;
+-import org.openstreetmap.josm.data.osm.visitor.Visitor;
++import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
+ import org.openstreetmap.josm.gui.MapView;
+ 
+ /**
+@@ -251,7 +251,7 @@
+      * Visitor that highlights the primitives affected by this error
+      * @author frsantos
+      */
+-    class PaintVisitor implements ValidatorVisitor, Visitor {
++    class PaintVisitor extends AbstractVisitor implements ValidatorVisitor {
+         /** The graphics */
+         private final Graphics g;
+         /** The MapView */
+diff -urNad trunk~/validator/src/org/openstreetmap/josm/plugins/validator/util/AgregatePrimitivesVisitor.java trunk/validator/src/org/openstreetmap/josm/plugins/validator/util/AgregatePrimitivesVisitor.java
+--- trunk~/validator/src/org/openstreetmap/josm/plugins/validator/util/AgregatePrimitivesVisitor.java	2009-02-01 21:50:42.000000000 +0100
++++ trunk/validator/src/org/openstreetmap/josm/plugins/validator/util/AgregatePrimitivesVisitor.java	2009-06-07 15:39:46.000000000 +0200
+@@ -5,7 +5,7 @@
+ import java.util.LinkedList;
+ 
+ import org.openstreetmap.josm.data.osm.*;
+-import org.openstreetmap.josm.data.osm.visitor.Visitor;
++import org.openstreetmap.josm.data.osm.visitor.AbstractVisitor;
+ 
+ /**
+  * A visitor that aggregates all primitives it visits.
+@@ -14,7 +14,7 @@
+  *
+  * @author frsantos
+  */
+-public class AgregatePrimitivesVisitor implements Visitor
++public class AgregatePrimitivesVisitor extends AbstractVisitor
+ {
+     /** Aggregated data */
+     Collection<OsmPrimitive> aggregatedData;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/josm-plugins.git



More information about the Pkg-grass-devel mailing list