Changeset 18623 in osm for applications/editors
- Timestamp:
- 2009-11-15T15:28:53+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/TagChecker.java
r18600 r18623 440 440 } 441 441 } 442 if(checkPaint && p.getErrors() != null) 443 { 444 for(String s: p.getErrors()) 445 { 446 /* passing translated text also to original string, as we already 447 translated the stuff before. Makes the ignore file language dependend. */ 448 errors.add( new TestError(this, Severity.WARNING, tr("Painting problem"), 449 s, s, PAINT, p) ); 450 withErrors.add(p, "P"); 442 if(checkPaint) 443 { 444 List<String> pe = p.getDataSet().getErrors(p); 445 if(pe != null) 446 { 447 for(String s: pe) 448 { 449 /* passing translated text also to original string, as we already 450 translated the stuff before. Makes the ignore file language dependend. */ 451 errors.add( new TestError(this, Severity.WARNING, tr("Painting problem"), 452 s, s, PAINT, p) ); 453 withErrors.add(p, "P"); 454 } 451 455 } 452 456 } … … 556 560 public void startTest(ProgressMonitor monitor) 557 561 { 558 562 super.startTest(monitor); 559 563 checkKeys = Main.pref.getBoolean(PREF_CHECK_KEYS, true); 560 564 if( isBeforeUpload ) … … 622 626 public void actionPerformed(ActionEvent e) { 623 627 String source = JOptionPane.showInputDialog( 624 625 626 627 628 628 Main.parent, 629 tr("TagChecker source"), 630 tr("TagChecker source"), 631 JOptionPane.QUESTION_MESSAGE 632 ); 629 633 if (source != null) 630 634 ((DefaultListModel)Sources.getModel()).addElement(source); … … 653 657 { 654 658 JOptionPane.showMessageDialog( 655 656 657 658 659 659 Main.parent, 660 tr("Please select the row to edit."), 661 tr("Information"), 662 JOptionPane.INFORMATION_MESSAGE 663 ); 660 664 } 661 665 } 662 666 else { 663 664 665 666 667 667 String source = (String)JOptionPane.showInputDialog(Main.parent, 668 tr("TagChecker source"), 669 tr("TagChecker source"), 670 JOptionPane.QUESTION_MESSAGE, null, null, 671 Sources.getSelectedValue()); 668 672 if (source != null) 669 673 ((DefaultListModel)Sources.getModel()).setElementAt(source, row);
Note:
See TracChangeset
for help on using the changeset viewer.