Ignore:
Timestamp:
2018-08-18T18:53:47+02:00 (8 years ago)
Author:
donvip
Message:

update to JOSM 14153

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogPlugin.java

    r33788 r34533  
    1010import javax.swing.JOptionPane;
    1111
    12 import org.openstreetmap.josm.Main;
    1312import org.openstreetmap.josm.actions.JosmAction;
    1413import org.openstreetmap.josm.gui.MainApplication;
     
    4645        public void actionPerformed(ActionEvent e) {
    4746            JFileChooser fc = new JFileChooser();
    48             if (fc.showOpenDialog(Main.parent) == JFileChooser.APPROVE_OPTION) {
     47            if (fc.showOpenDialog(MainApplication.getMainFrame()) == JFileChooser.APPROVE_OPTION) {
    4948                try {
    5049                    List<NanoLogEntry> entries = NanoLogLayer.readNanoLog(fc.getSelectedFile());
     
    5554                    }
    5655                } catch (IOException ex) {
    57                     JOptionPane.showMessageDialog(Main.parent, tr("Could not read NanoLog file:") + "\n" + ex.getMessage());
     56                    JOptionPane.showMessageDialog(MainApplication.getMainFrame(), tr("Could not read NanoLog file:") + "\n" + ex.getMessage());
    5857                }
    5958            }
Note: See TracChangeset for help on using the changeset viewer.