Ignore:
Timestamp:
2018-08-18T18:01:31+02:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14153

Location:
applications/editors/josm/plugins/imagery-xml-bounds
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery-xml-bounds/build.xml

    r34326 r34518  
    44    <property name="commit.message" value="Commit message"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="13957"/>
     6    <property name="plugin.main.version" value="14153"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/ShowBoundsAction.java

    r34326 r34518  
    1111import javax.swing.JScrollPane;
    1212
    13 import org.openstreetmap.josm.Main;
    1413import org.openstreetmap.josm.actions.IPrimitiveAction;
    1514import org.openstreetmap.josm.data.osm.IPrimitive;
     15import org.openstreetmap.josm.gui.MainApplication;
    1616import org.openstreetmap.josm.plugins.imageryxmlbounds.XmlBoundsLayer;
    1717
     
    5151        scrollPane.setPreferredSize(new Dimension(1024, 600));
    5252        box.add(scrollPane);
    53         JOptionPane.showMessageDialog(Main.parent, box, ACTION_NAME, JOptionPane.PLAIN_MESSAGE);
     53        JOptionPane.showMessageDialog(MainApplication.getMainFrame(), box, ACTION_NAME, JOptionPane.PLAIN_MESSAGE);
    5454    }
    5555
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/io/XmlBoundsImporter.java

    r33560 r34518  
    1010import javax.swing.JOptionPane;
    1111
    12 import org.openstreetmap.josm.Main;
    1312import org.openstreetmap.josm.data.imagery.ImageryInfo;
    1413import org.openstreetmap.josm.data.osm.DataSet;
     
    6766            Logging.trace(e);
    6867            if (JOptionPane.showConfirmDialog(
    69                     Main.parent,
     68                    MainApplication.getMainFrame(),
    7069                    tr("Validating error in file {0}:\n{1}\nDo you want to continue without validating the file ?",
    7170                            source != null ? source : file.getPath(), e.getLocalizedMessage()),
     
    9190                            if (dataSet.allPrimitives().isEmpty()) {
    9291                                JOptionPane.showMessageDialog(
    93                                         Main.parent, tr("No data found in file {0}.", source != null ? source : file.getPath()),
     92                                        MainApplication.getMainFrame(), tr("No data found in file {0}.", source != null ? source : file.getPath()),
    9493                                        tr("Open Imagery XML file"), JOptionPane.INFORMATION_MESSAGE);
    9594                            }
Note: See TracChangeset for help on using the changeset viewer.