Changeset 34555 in osm for applications/editors/josm/plugins/seachartedit/src/panels/PanelMain.java
- Timestamp:
- 2018-08-18T20:15:48+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachartedit/src/panels/PanelMain.java
r33030 r34555 28 28 import javax.swing.JTextField; 29 29 30 import org.openstreetmap.josm.Main; 30 import org.openstreetmap.josm.gui.MainApplication; 31 import org.openstreetmap.josm.spi.preferences.Config; 31 32 32 33 import messages.Messages; … … 52 53 }; 53 54 private JButton importButton = null; 54 JFileChooser ifc = new JFileChooser( Main.pref.get("nceditplugin.encinpfile"));55 JFileChooser ifc = new JFileChooser(Config.getPref().get("nceditplugin.encinpfile")); 55 56 private ActionListener alImport = new ActionListener() { 56 57 @Override … … 59 60 SCeditAction.panelS57.setVisible(true); 60 61 setStatus("Select S-57 ENC file for import", Color.yellow); 61 int returnVal = ifc.showOpenDialog(Main .parent);62 int returnVal = ifc.showOpenDialog(MainApplication.getMainFrame()); 62 63 if (returnVal == JFileChooser.APPROVE_OPTION) { 63 64 try { 64 Main.pref.put("smed2plugin.encinpfile", ifc.getSelectedFile().getPath());65 Config.getPref().put("smed2plugin.encinpfile", ifc.getSelectedFile().getPath()); 65 66 SCeditAction.panelS57.startImport(ifc.getSelectedFile()); 66 67 } catch (IOException e1) { … … 84 85 SCeditAction.panelS57.setVisible(true); 85 86 setStatus("Select S-57 ENC file for export", Color.yellow); 86 int returnVal = efc.showOpenDialog(Main .parent);87 int returnVal = efc.showOpenDialog(MainApplication.getMainFrame()); 87 88 if (returnVal == JFileChooser.APPROVE_OPTION) { 88 89 try {
Note:
See TracChangeset
for help on using the changeset viewer.
