Changeset 34522 in osm for applications/editors/josm/plugins/indoorhelper/src/org
- Timestamp:
- 2018-08-18T18:12:13+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/indoorhelper/src/org/openstreetmap/josm/plugins/indoorhelper/IndoorHelperPlugin.java
r34310 r34522 26 26 import java.io.OutputStream; 27 27 28 import org.openstreetmap.josm.Main;29 28 import org.openstreetmap.josm.gui.MainApplication; 30 29 import org.openstreetmap.josm.gui.MapFrame; … … 38 37 import org.openstreetmap.josm.plugins.Plugin; 39 38 import org.openstreetmap.josm.plugins.PluginInformation; 39 import org.openstreetmap.josm.spi.preferences.Config; 40 40 41 41 import controller.IndoorHelperController; … … 97 97 byte[] buffer = new byte[4096]; 98 98 99 String valDirPath = Main.pref.getDirs().getUserDataDirectory(true) + sep + "validator";99 String valDirPath = Config.getDirs().getUserDataDirectory(true) + sep + "validator"; 100 100 File valDir = new File(valDirPath); 101 101 valDir.mkdirs(); … … 126 126 byte[] buffer = new byte[4096]; 127 127 128 String valDirPath = Main.pref.getDirs().getUserDataDirectory(true) + sep + "styles";128 String valDirPath = Config.getDirs().getUserDataDirectory(true) + sep + "styles"; 129 129 File valDir = new File(valDirPath); 130 130 valDir.mkdirs(); … … 172 172 // private void setIndoorValidator() { 173 173 // //get the current validator settings 174 // Map<String, Setting<?>> settings = Main.pref.getAllSettings();174 // Map<String, Setting<?>> settings = Config.getPref().getAllSettings(); 175 175 // MapListSetting mapListSetting = (MapListSetting) settings. 176 176 // get("validator.org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.entries"); … … 199 199 // indoorValidator.put("title", "Indoor"); 200 200 // indoorValidator.put("active", "true"); 201 // indoorValidator.put("url", Main.pref.getUserDataDirectory()+ sep +"validator" +201 // indoorValidator.put("url", Config.getPref().getUserDataDirectory()+ sep +"validator" + 202 202 // sep + "indoorhelper.validator.mapcss"); 203 203 // 204 204 // validatorMapsNew.add(indoorValidator); 205 // Main.pref.putListOfStructs205 // Config.getPref().putListOfStructs 206 206 // ("validator.org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.entries", 207 207 // validatorMapsNew);
Note:
See TracChangeset
for help on using the changeset viewer.