Changeset 4093 in osm for applications/editors/josm/plugins/validator/src/org
- Timestamp:
- 2007-08-13T03:17:03+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/OSMValidatorPlugin.java
r4087 r4093 131 131 public static Collection<Test> getTests(boolean enabled, boolean enabledBeforeUpload) 132 132 { 133 Set<Test> tests = new HashSet<Test>(); 133 134 Map<String, Test> enabledTests = new LinkedHashMap<String, Test>(); 134 135 for(Class<Test> testClass : getAllAvailableTests() ) … … 155 156 { 156 157 test.enabled = Boolean.valueOf(m.group(2)); 158 if( enabled && test.enabled ) 159 tests.add(test ); 157 160 } 158 161 pos = m.end(); … … 168 171 { 169 172 test.testBeforeUpload = Boolean.valueOf(m.group(2)); 170 if( !enabled && test.enabled || !enabledBeforeUpload && test.testBeforeUpload)171 enabledTests.remove(test.getClass().getSimpleName());173 if( enabledBeforeUpload && test.testBeforeUpload) 174 tests.add(test ); 172 175 } 173 176 pos = m.end(); 174 177 } 175 178 176 return enabledTests.values();179 return tests; 177 180 } 178 181
Note:
See TracChangeset
for help on using the changeset viewer.