Changeset 34533 in osm for applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogPlugin.java
- Timestamp:
- 2018-08-18T18:53:47+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogPlugin.java
r33788 r34533 10 10 import javax.swing.JOptionPane; 11 11 12 import org.openstreetmap.josm.Main;13 12 import org.openstreetmap.josm.actions.JosmAction; 14 13 import org.openstreetmap.josm.gui.MainApplication; … … 46 45 public void actionPerformed(ActionEvent e) { 47 46 JFileChooser fc = new JFileChooser(); 48 if (fc.showOpenDialog(Main .parent) == JFileChooser.APPROVE_OPTION) {47 if (fc.showOpenDialog(MainApplication.getMainFrame()) == JFileChooser.APPROVE_OPTION) { 49 48 try { 50 49 List<NanoLogEntry> entries = NanoLogLayer.readNanoLog(fc.getSelectedFile()); … … 55 54 } 56 55 } 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()); 58 57 } 59 58 }
Note:
See TracChangeset
for help on using the changeset viewer.
