Changeset 33560 in osm for applications/editors/josm/plugins/imagery-xml-bounds
- Timestamp:
- 2017-08-27T19:16:30+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/ImageryXmlBoundsPlugin.java
r33493 r33560 2 2 package org.openstreetmap.josm.plugins.imageryxmlbounds; 3 3 4 import org.openstreetmap.josm.Main;5 4 import org.openstreetmap.josm.actions.ExtensionFileFilter; 6 5 import org.openstreetmap.josm.data.osm.DataSet; 6 import org.openstreetmap.josm.gui.MainApplication; 7 7 import org.openstreetmap.josm.gui.MapFrame; 8 8 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; … … 60 60 ShowBoundsSelectionAction selectionAction = new ShowBoundsSelectionAction(); 61 61 DataSet.addSelectionListener(selectionAction); 62 Main .toolbar.register(selectionAction);62 MainApplication.getToolbar().register(selectionAction); 63 63 // Allow JOSM to download *.imagery.xml files 64 Main .main.menu.openLocation.addDownloadTaskClass(DownloadXmlBoundsTask.class);64 MainApplication.getMenu().openLocation.addDownloadTaskClass(DownloadXmlBoundsTask.class); 65 65 } 66 66 -
applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/io/XmlBoundsImporter.java
r33557 r33560 13 13 import org.openstreetmap.josm.data.imagery.ImageryInfo; 14 14 import org.openstreetmap.josm.data.osm.DataSet; 15 import org.openstreetmap.josm.gui.MainApplication; 15 16 import org.openstreetmap.josm.gui.io.importexport.FileImporter; 16 17 import org.openstreetmap.josm.gui.progress.ProgressMonitor; … … 21 22 import org.openstreetmap.josm.plugins.imageryxmlbounds.XmlBoundsLayer; 22 23 import org.openstreetmap.josm.plugins.imageryxmlbounds.data.XmlBoundsConverter; 24 import org.openstreetmap.josm.tools.Logging; 23 25 import org.xml.sax.SAXException; 24 26 … … 63 65 entries = reader.parse(); 64 66 } catch (SAXException e) { 65 if (Main.isTraceEnabled()) { 66 Main.trace(e); 67 } 67 Logging.trace(e); 68 68 if (JOptionPane.showConfirmDialog( 69 69 Main.parent, … … 94 94 tr("Open Imagery XML file"), JOptionPane.INFORMATION_MESSAGE); 95 95 } 96 Main .getLayerManager().addLayer(layer);96 MainApplication.getLayerManager().addLayer(layer); 97 97 layer.onPostLoadFromFile(); 98 98 }); 99 99 } catch (SAXException e) { 100 Main.error(e);100 Logging.error(e); 101 101 } 102 102 }
Note:
See TracChangeset
for help on using the changeset viewer.