Changeset 8905 in osm for applications/editors/josm


Ignore:
Timestamp:
2008-07-10T10:55:52+02:00 (16 years ago)
Author:
stoecker
Message:

added test for unclosed ways

Location:
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/OSMValidatorPlugin.java

    r6557 r8905  
    3838    /** The list of errors per layer*/
    3939    Map<Layer, List<TestError>> layerErrors = new HashMap<Layer, List<TestError>>();
    40    
    41     /**
    42      * All available tests
    43      * TODO: is there any way to find out automagically all available tests?
    44     */
    45     public static Class[] allAvailableTests = new Class[]
    46     {
    47         DuplicateNode.class,
    48         OverlappingWays.class,
    49         UntaggedNode.class,
    50         UntaggedWay.class,
    51         SelfIntersectingWay.class,
    52         SpellCheck.class,
    53         DuplicatedWayNodes.class,
    54         CrossingWays.class,
    55         SimilarNamedWays.class,
     40
     41        /**
     42         * All available tests
     43         * TODO: is there any way to find out automagically all available tests?
     44        */
     45        public static Class[] allAvailableTests = new Class[]
     46        {
     47                DuplicateNode.class,
     48                OverlappingWays.class,
     49                UntaggedNode.class,
     50                UntaggedWay.class,
     51                SelfIntersectingWay.class,
     52                SpellCheck.class,
     53                DuplicatedWayNodes.class,
     54                CrossingWays.class,
     55                SimilarNamedWays.class,
    5656                NodesWithSameName.class,
    57         Coastlines.class,
    58         WronglyOrderedWays.class,
    59     };
     57                Coastlines.class,
     58                WronglyOrderedWays.class,
     59                UnclosedWays.class,
     60        };
    6061
    6162        /**
     
    6566        {
    6667                PreferenceEditor.importOldPreferences();
    67         initializeTests( getTests() );
    68         }
    69        
    70     @Override
     68                initializeTests( getTests() );
     69        }
     70
     71        @Override
    7172        public PreferenceSetting getPreferenceSetting()
    7273        {
    7374                return new PreferenceEditor(this);
    7475        }
    75        
     76
    7677        @Override
    7778        public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame)
Note: See TracChangeset for help on using the changeset viewer.