Changeset 27470 in osm
- Timestamp:
- 2012-01-15T20:35:19+01:00 (13 years ago)
- Location:
- applications/editors/josm/plugins/licensechange/src/org/openstreetmap/josm/plugins/licensechange
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/licensechange/src/org/openstreetmap/josm/plugins/licensechange/CheckAction.java
r26509 r27470 87 87 { 88 88 private Check licenseCheck; 89 private Collection<OsmPrimitive> validatedPrimitives;90 private Collection<OsmPrimitive> former ValidatedPrimitives;89 private Collection<OsmPrimitive> checkedPrimitives; 90 private Collection<OsmPrimitive> formerCheckedPrimitives; 91 91 private boolean canceled; 92 92 private List<LicenseProblem> problems; … … 94 94 /** 95 95 * 96 * @param validatedPrimitives the collection of primitives to validate.97 * @param former ValidatedPrimitives the last collection of primitives being validates. May be null.96 * @param checkedPrimitives the collection of primitives to validate. 97 * @param formerCheckedPrimitives the last collection of primitives being validates. May be null. 98 98 */ 99 public CheckTask(Collection<OsmPrimitive> validatedPrimitives, Collection<OsmPrimitive> formerValidatedPrimitives)99 public CheckTask(Collection<OsmPrimitive> checkedPrimitives, Collection<OsmPrimitive> formerCheckedPrimitives) 100 100 { 101 101 super(tr("Loading"), false /*don't ignore exceptions */); 102 102 103 this. validatedPrimitives = validatedPrimitives;104 this.former ValidatedPrimitives = formerValidatedPrimitives;103 this.checkedPrimitives = checkedPrimitives; 104 this.formerCheckedPrimitives = formerCheckedPrimitives; 105 105 this.licenseCheck = new BasicLicenseCheck(plugin); 106 106 } … … 141 141 { 142 142 getProgressMonitor().indeterminateSubTask(tr("Loading from Quick History Service...")); 143 plugin.loadDataFromQuickHistoryService( validatedPrimitives);143 plugin.loadDataFromQuickHistoryService(checkedPrimitives); 144 144 problems = new ArrayList<LicenseProblem>(200); 145 145 int testCounter = 0; 146 146 getProgressMonitor().indeterminateSubTask(tr("Analyzing...")); 147 //licenseCheck.startCheck(getProgressMonitor().createSubTaskMonitor( validatedPrimitives.size(), false));147 //licenseCheck.startCheck(getProgressMonitor().createSubTaskMonitor(checkedPrimitives.size(), false)); 148 148 licenseCheck.startCheck(getProgressMonitor()); 149 licenseCheck.visit( validatedPrimitives);149 licenseCheck.visit(checkedPrimitives); 150 150 licenseCheck.endCheck(); 151 151 problems.addAll(licenseCheck.getProblems()); -
applications/editors/josm/plugins/licensechange/src/org/openstreetmap/josm/plugins/licensechange/LicenseChangePlugin.java
r27400 r27470 174 174 String s = atts.getValue("severity"); 175 175 176 if (!"undecided".equals(d) && !"no".equals(d) ) return;176 if (!"undecided".equals(d) && !"no".equals(d) && !"anonymous".equals(d)) return; 177 177 178 178 if ("normal".equals(s) && "first".equals(v)) s = "first";
Note:
See TracChangeset
for help on using the changeset viewer.