Changeset 30666 in osm for applications
- Timestamp:
- 2014-09-22T22:02:34+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/sds
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/sds/build.xml
r30416 r30666 5 5 <property name="commit.message" value=""/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="7 001"/>7 <property name="plugin.main.version" value="7578"/> 8 8 9 9 <!-- -
applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/SdsDiskAccessAction.java
r29854 r30666 11 11 import org.openstreetmap.josm.actions.DiskAccessAction; 12 12 import org.openstreetmap.josm.gui.ExtendedDialog; 13 import org.openstreetmap.josm.gui.widgets.SwingFileChooser; 13 14 import org.openstreetmap.josm.tools.Shortcut; 14 15 … … 21 22 } 22 23 23 public static JFileChooser createAndOpenFileChooser(boolean open, boolean multiple, String title) {24 public static SwingFileChooser createAndOpenFileChooser(boolean open, boolean multiple, String title) { 24 25 String curDir = Main.pref.get("lastDirectory"); 25 26 if (curDir.equals("")) { 26 27 curDir = "."; 27 28 } 28 JFileChooser fc = new JFileChooser(new File(curDir));29 SwingFileChooser fc = new SwingFileChooser(new File(curDir)); 29 30 if (title != null) { 30 31 fc.setDialogTitle(title); -
applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/SdsLoadAction.java
r29854 r30666 14 14 import java.util.List; 15 15 16 import javax.swing.JFileChooser;17 16 import javax.xml.parsers.ParserConfigurationException; 18 17 import javax.xml.parsers.SAXParserFactory; … … 20 19 import org.openstreetmap.josm.Main; 21 20 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 21 import org.openstreetmap.josm.gui.widgets.SwingFileChooser; 22 22 import org.openstreetmap.josm.io.OsmTransferException; 23 23 import org.xml.sax.InputSource; … … 35 35 36 36 public void actionPerformed(ActionEvent e) { 37 JFileChooser fc = createAndOpenFileChooser(true, true, null);37 SwingFileChooser fc = createAndOpenFileChooser(true, true, null); 38 38 if (fc == null) 39 39 return;
Note:
See TracChangeset
for help on using the changeset viewer.