Changeset 5177 in josm


Ignore:
Timestamp:
Apr 12, 2012 1:04:13 AM (14 months ago)
Author:
simon04
Message:

see #6964 - validator initialization requires tagging presets to be initialized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r5142 r5177  
    292292                } 
    293293                TaggingPresetPreference.initialize(); 
     294                // some validator tests require the presets to be initialized 
     295                // TODO remove this dependency for parallel initialization 
     296                if (initListener != null) { 
     297                    initListener.updateStatus(tr("Initializing validator")); 
     298                } 
     299                validator = new OsmValidator(); 
     300                MapView.addLayerChangeListener(validator); 
    294301                return null; 
    295302            } 
     
    316323                } 
    317324                ImageryPreference.initialize(); 
    318                 return null; 
    319             } 
    320         }); 
    321  
    322         tasks.add(new Callable<Void>() { 
    323  
    324             @Override 
    325             public Void call() throws Exception { 
    326                 if (initListener != null) { 
    327                     initListener.updateStatus(tr("Initializing validator")); 
    328                 } 
    329                 validator = new OsmValidator(); 
    330                 MapView.addLayerChangeListener(validator); 
    331325                return null; 
    332326            } 
Note: See TracChangeset for help on using the changeset viewer.