Ignore:
Timestamp:
2009-11-22T15:04:33+01:00 (15 years ago)
Author:
stoecker
Message:

disabled tag check

Location:
applications/editors/josm/plugins/validator
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/ignoretags.cfg

    r16967 r18737  
    249249T:religion=christian|denomination=greek_orthodox
    250250T:religion=jewish|denomination=hasidic
    251 T:religion=jewish|denomination=humanistic 
     251T:religion=jewish|denomination=humanistic
    252252T:religion=muslim|denomination=ibadi
    253253T:religion=muslim|denomination=ismaili
    254254T:religion=christian|denomination=jehovahs_witness
    255255T:religion=christian|denomination=kabbalah
    256 T:religion=christian|denomination=karaite 
    257 T:religion=jewish|denomination=liberal 
     256T:religion=christian|denomination=karaite
     257T:religion=jewish|denomination=liberal
    258258T:religion=christian|denomination=living_waters_church
    259259T:religion=christian|denomination=lutheran
     
    270270T:religion=muslim|denomination=nondenominational
    271271T:religion=christian|denomination=old_catholic
    272 T:religion=christian|denomination=orthodox 
    273 T:religion=jewish|denomination=orthodox 
     272T:religion=christian|denomination=orthodox
     273T:religion=jewish|denomination=orthodox
    274274T:religion=christian|denomination=pentecostal
    275275T:religion=christian|denomination=presbyterian
    276 T:religion=jewish|denomination=progressive 
     276T:religion=jewish|denomination=progressive
    277277T:religion=christian|denomination=protestant
    278278T:religion=christian|denomination=quaker
    279279T:religion=jewish|denomination=reconstructionist
    280280T:religion=jewish|denomination=reform
    281 T:religion=jewish|denomination=renewal   
     281T:religion=jewish|denomination=renewal
    282282T:religion=christian|denomination=roman_catholic
    283283T:religion=christian|denomination=russian_orthodox
     
    286286T:religion=christian|denomination=seventh_day_adventist
    287287T:religion=muslim|denomination=shia
    288 T:religion=muslim|denomination=sunni 
     288T:religion=muslim|denomination=sunni
    289289T:religion=jewish|denomination=ultra_orthodox
    290290T:religion=christian|denomination=united
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidatorDialog.java

    r18377 r18737  
    143143
    144144        Set<DefaultMutableTreeNode> processedNodes = new HashSet<DefaultMutableTreeNode>();
    145                
     145
    146146        DuplicateNode.clearBackreferences();
    147147        LinkedList<TestError> errorsToFix = new LinkedList<TestError>();
     
    160160                Object nodeInfo = childNode.getUserObject();
    161161                if (nodeInfo instanceof TestError) {
    162                         errorsToFix.add((TestError)nodeInfo);
    163                 }
    164             }
    165         }
    166        
     162                    errorsToFix.add((TestError)nodeInfo);
     163                }
     164            }
     165        }
     166
    167167        // run fix task asynchronously
    168168        //
     
    445445        tree.setFilter(filter);
    446446    }
    447    
    448     /**
    449      * Task for fixing a collection of {@see TestError}s. Can be run asynchronously.
    450      *
     447
     448    /**
     449     * Task for fixing a collection of {@see TestError}s. Can be run asynchronously.
    451450     *
     451     *
    452452     */
    453453    class FixTask extends PleaseWaitRunnable {
    454         private Collection<TestError> testErrors;
    455         private boolean canceled;
    456         private LinkedList<Command> fixCommands;
    457    
    458        
    459         public FixTask(Collection<TestError> testErrors) {
    460                 super(tr("Fixing errors ..."), false /* don't ignore exceptions */);
    461                 this.testErrors = testErrors == null ? new ArrayList<TestError> (): testErrors;
    462                 fixCommands = new LinkedList<Command>();
    463         }
    464 
    465                 @Override
    466                 protected void cancel() {
    467                         this.canceled = true;                   
    468                 }
    469 
    470                 @Override
    471                 protected void finish() {
    472                         // do nothing
    473                 }
    474                
    475                 @Override
    476                 protected void realRun() throws SAXException, IOException,
    477                                 OsmTransferException {
    478                         ProgressMonitor monitor = getProgressMonitor();
    479                         try {                           
    480                                 monitor.setTicksCount(testErrors.size());
    481                                 int i=0;
    482                                 for (TestError error: testErrors) {
    483                                         i++;
    484                                         monitor.subTask(tr("Fixing ({0}/{1}): ''{2}''", i, testErrors.size(),error.getMessage()));
    485                                         if (this.canceled) 
    486                                                 return;
    487                                         final Command fixCommand = error.getFix();
     454        private Collection<TestError> testErrors;
     455        private boolean canceled;
     456        private LinkedList<Command> fixCommands;
     457
     458
     459        public FixTask(Collection<TestError> testErrors) {
     460            super(tr("Fixing errors ..."), false /* don't ignore exceptions */);
     461            this.testErrors = testErrors == null ? new ArrayList<TestError> (): testErrors;
     462            fixCommands = new LinkedList<Command>();
     463        }
     464
     465        @Override
     466        protected void cancel() {
     467            this.canceled = true;
     468        }
     469
     470        @Override
     471        protected void finish() {
     472            // do nothing
     473        }
     474
     475        @Override
     476        protected void realRun() throws SAXException, IOException,
     477                OsmTransferException {
     478            ProgressMonitor monitor = getProgressMonitor();
     479            try {
     480                monitor.setTicksCount(testErrors.size());
     481                int i=0;
     482                for (TestError error: testErrors) {
     483                    i++;
     484                    monitor.subTask(tr("Fixing ({0}/{1}): ''{2}''", i, testErrors.size(),error.getMessage()));
     485                    if (this.canceled)
     486                        return;
     487                    final Command fixCommand = error.getFix();
    488488                    if (fixCommand != null) {
    489                         fixCommands.add(fixCommand);
    490                                         SwingUtilities.invokeAndWait(
    491                                                         new Runnable() {
    492                                                                 public void run() {
    493                                                                         Main.main.undoRedo.addNoRedraw(fixCommand);
    494                                                                 }
    495                                                         }
    496                                         );
     489                        fixCommands.add(fixCommand);
     490                        SwingUtilities.invokeAndWait(
     491                                new Runnable() {
     492                                    public void run() {
     493                                        Main.main.undoRedo.addNoRedraw(fixCommand);
     494                                    }
     495                                }
     496                        );
    497497                        error.setIgnored(true);
    498498                    }
    499499                    monitor.worked(1);
    500                                 }               
    501                                 monitor.subTask(tr("Updating map ..."));
    502                                 SwingUtilities.invokeAndWait(new Runnable() {
    503                                         public void run() {
    504                                                 Main.main.undoRedo.afterAdd();
    505                                                 Main.map.repaint();
    506                                                 tree.resetErrors();
    507                                     Main.main.getCurrentDataSet().fireSelectionChanged();
    508                                         }
    509                                 });
    510                         } catch(InterruptedException e) { 
    511                                 // FIXME: signature of realRun should have a generic checked exception we
    512                                 // could throw here
    513                                 throw new RuntimeException(e);
    514                         } catch(InvocationTargetException e) {
    515                                 throw new RuntimeException(e);
    516                         } finally {
    517                                 monitor.finishTask();
    518                         }                       
    519                 }
     500                }
     501                monitor.subTask(tr("Updating map ..."));
     502                SwingUtilities.invokeAndWait(new Runnable() {
     503                    public void run() {
     504                        Main.main.undoRedo.afterAdd();
     505                        Main.map.repaint();
     506                        tree.resetErrors();
     507                        Main.main.getCurrentDataSet().fireSelectionChanged();
     508                    }
     509                });
     510            } catch(InterruptedException e) {
     511                // FIXME: signature of realRun should have a generic checked exception we
     512                // could throw here
     513                throw new RuntimeException(e);
     514            } catch(InvocationTargetException e) {
     515                throw new RuntimeException(e);
     516            } finally {
     517                monitor.finishTask();
     518            }
     519        }
    520520    }
    521521}
  • applications/editors/josm/plugins/validator/tagchecker.cfg

    r16439 r18737  
    7575node : I : amenity == /restaurant|cafe|fast_food/ && name != * # restaurant without name
    7676#way  : I : highway != * && railway != * && waterway != * && name == * # unusual named way type
    77 *    : W : natural == water && waterway == *                   # unusual tag combination
     77#*    : W : natural == water && waterway == *                   # unusual tag combination
    7878*    : W : highway == * && waterway == *                       # unusual tag combination
    7979*    : W : highway == * && natural == *                        # unusual tag combination
Note: See TracChangeset for help on using the changeset viewer.