Changeset 31376 in osm for applications/editors/josm
- Timestamp:
- 2015-07-15T16:34:32+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportAction.java
r31359 r31376 53 53 public void actionPerformed(ActionEvent e) { 54 54 chooser = new JFileChooser(); 55 chooser.setCurrentDirectory(new java.io.File(System.getProperty("user.home"))); 55 File startDirectory = new File(Main.pref.get("mapillary.start-directory", System.getProperty("user.home"))); 56 chooser.setCurrentDirectory(startDirectory); 56 57 chooser.setDialogTitle(tr("Select pictures")); 57 58 chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); … … 62 63 for (int i = 0; i < chooser.getSelectedFiles().length; i++) { 63 64 File file = chooser.getSelectedFiles()[i]; 65 Main.pref.put("mapillary.start-directory", file.getParent()); 64 66 MapillaryLayer.getInstance(); 65 67 if (file.isDirectory()) { -
applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/actions/MapillaryImportIntoSequenceAction.java
r31359 r31376 50 50 51 51 chooser = new JFileChooser(); 52 chooser.setCurrentDirectory(new java.io.File(System.getProperty("user.home")));53 chooser.set DialogTitle(tr("Select pictures"));52 File startDirectory = new File(Main.pref.get("mapillary.start-directory", System.getProperty("user.home"))); 53 chooser.setCurrentDirectory(startDirectory); chooser.setDialogTitle(tr("Select pictures")); 54 54 chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); 55 55 chooser.setAcceptAllFileFilterUsed(false); … … 59 59 for (int i = 0; i < chooser.getSelectedFiles().length; i++) { 60 60 File file = chooser.getSelectedFiles()[i]; 61 Main.pref.put("mapillary.start-directory", file.getParent()); 61 62 if (file.isDirectory()) { 62 63 // TODO import directory
Note:
See TracChangeset
for help on using the changeset viewer.