Logo Search packages:      
Sourcecode: josm-plugins version File versions  Download package

static void org::openstreetmap::josm::plugins::validator::tests::SpellCheck::initializePresets (  )  throws Exception [inline, static]

Reads the presets data.

Exceptions:
Exception 

Definition at line 188 of file SpellCheck.java.

References PREF_CHECK_VALUES, readPresetFromPreferences(), and spellCheckValueData.

      {
            if( !Main.pref.getBoolean(PREF_CHECK_VALUES) )
                  return;
            
            Collection<TaggingPreset> presets = TaggingPresetPreference.taggingPresets;
            if( presets == null || presets.isEmpty() )
            {
                  // Skip re-reading presets if there are none available
                  return;
            }
            
            spellCheckValueData = new Bag<String, String>();
            readPresetFromPreferences();
      }


Generated by  Doxygen 1.6.0   Back to index