Changeset 32134 in osm for applications/editors/josm/plugins/indoorhelper/src/controller/IndoorHelperController.java
- Timestamp:
- 2016-03-30T00:10:58+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/indoorhelper/src/controller/IndoorHelperController.java
r32122 r32134 35 35 import org.openstreetmap.josm.Main; 36 36 import org.openstreetmap.josm.actions.ValidateAction; 37 import org.openstreetmap.josm.data. Preferences.MapListSetting;38 import org.openstreetmap.josm.data. Preferences.Setting;37 import org.openstreetmap.josm.data.preferences.MapListSetting; 38 import org.openstreetmap.josm.data.preferences.Setting; 39 39 import org.openstreetmap.josm.data.osm.Tag; 40 40 import org.openstreetmap.josm.data.validation.OsmValidator; … … 527 527 */ 528 528 private void updateSettings(){ 529 try { 530 Main.pref.load(); 531 Main.pref.init(false); 532 } catch (IOException e) { 533 // TODO Auto-generated catch block 534 e.printStackTrace(); 535 } catch (SAXException e) { 536 // TODO Auto-generated catch block 537 e.printStackTrace(); 538 } catch (XMLStreamException e) { 539 // TODO Auto-generated catch block 540 e.printStackTrace(); 541 } 542 529 Main.pref.init(false); 543 530 MapCSSTagChecker tagChecker = OsmValidator.getTest(MapCSSTagChecker.class); 544 if (tagChecker != null) {545 OsmValidator.initializeTests(Collections.singleton(tagChecker));546 }547 548 MapPaintStyles.readFromPreferences();531 if (tagChecker != null) { 532 OsmValidator.initializeTests(Collections.singleton(tagChecker)); 533 } 534 535 MapPaintStyles.readFromPreferences(); 549 536 } 550 537 }
Note:
See TracChangeset
for help on using the changeset viewer.