Changeset 4076 in josm
- Timestamp:
- 2011-05-06T23:18:24+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ValidateAction.java
r4075 r4076 108 108 class ValidationTask extends PleaseWaitRunnable { 109 109 private Collection<Test> tests; 110 private Collection<OsmPrimitive> validatedPrimit mives;110 private Collection<OsmPrimitive> validatedPrimitives; 111 111 private Collection<OsmPrimitive> formerValidatedPrimitives; 112 112 private boolean canceled; … … 121 121 public ValidationTask(Collection<Test> tests, Collection<OsmPrimitive> validatedPrimitives, Collection<OsmPrimitive> formerValidatedPrimitives) { 122 122 super(tr("Validating"), false /*don't ignore exceptions */); 123 this.validatedPrimit mives = validatedPrimitives;123 this.validatedPrimitives = validatedPrimitives; 124 124 this.formerValidatedPrimitives = formerValidatedPrimitives; 125 125 this.tests = tests; … … 158 158 return; 159 159 errors = new ArrayList<TestError>(200); 160 getProgressMonitor().setTicksCount(tests.size() * validatedPrimit mives.size());160 getProgressMonitor().setTicksCount(tests.size() * validatedPrimitives.size()); 161 161 int testCounter = 0; 162 162 for (Test test : tests) { … … 166 166 getProgressMonitor().setCustomText(tr("Test {0}/{1}: Starting {2}", testCounter, tests.size(),test.getName())); 167 167 test.setPartialSelection(formerValidatedPrimitives != null); 168 test.startTest(getProgressMonitor().createSubTaskMonitor(validatedPrimit mives.size(), false));169 test.visit(validatedPrimit mives);168 test.startTest(getProgressMonitor().createSubTaskMonitor(validatedPrimitives.size(), false)); 169 test.visit(validatedPrimitives); 170 170 test.endTest(); 171 171 errors.addAll(test.getErrors());
Note:
See TracChangeset
for help on using the changeset viewer.