- Timestamp:
- 2021-03-08T20:45:04+01:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java
r17534 r17556 201 201 * @param options The options to set 202 202 * @see Options 203 * @since 175 34204 */ 205 public void setOptions(Options []options) {203 * @since 17556 204 */ 205 public void setOptions(Options... options) { 206 206 this.options.clear(); 207 207 if (options != null) { -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r17545 r17556 106 106 import org.openstreetmap.josm.gui.io.CustomConfigurator.XMLCommandProcessor; 107 107 import org.openstreetmap.josm.gui.io.SaveLayersDialog; 108 import org.openstreetmap.josm.gui.io.importexport.Options; 108 109 import org.openstreetmap.josm.gui.layer.AutosaveTask; 109 110 import org.openstreetmap.josm.gui.layer.Layer; … … 1276 1277 } 1277 1278 if (!fileList.isEmpty()) { 1278 tasks.add(OpenFileAction.openFiles(fileList, true));1279 tasks.add(OpenFileAction.openFiles(fileList, Options.RECORD_HISTORY)); 1279 1280 } 1280 1281 for (String s : args.get(Option.DOWNLOADGPS)) { -
trunk/src/org/openstreetmap/josm/gui/datatransfer/importers/FilePaster.java
r12634 r17556 13 13 import org.openstreetmap.josm.data.coor.EastNorth; 14 14 import org.openstreetmap.josm.gui.MainApplication; 15 import org.openstreetmap.josm.gui.io.importexport.Options; 15 16 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 16 17 … … 34 35 List<File> files = (List<File>) support.getTransferable().getTransferData(df); 35 36 OpenFileAction.OpenFileTask task = new OpenFileAction.OpenFileTask(files, null); 36 task.set RecordHistory(true);37 task.setOptions(Options.RECORD_HISTORY); 37 38 MainApplication.worker.submit(task); 38 39 return true; -
trunk/src/org/openstreetmap/josm/gui/io/RecentlyOpenedFilesMenu.java
r13647 r17556 19 19 import org.openstreetmap.josm.actions.OpenFileAction.OpenFileTask; 20 20 import org.openstreetmap.josm.gui.MainApplication; 21 import org.openstreetmap.josm.gui.io.importexport.Options; 21 22 import org.openstreetmap.josm.spi.preferences.Config; 22 23 import org.openstreetmap.josm.tools.ImageProvider; … … 85 86 public void actionPerformed(ActionEvent e) { 86 87 OpenFileTask task = new OpenFileTask(Collections.singletonList(new File(file)), null); 87 task.set RecordHistory(true);88 task.setOptions(Options.RECORD_HISTORY); 88 89 MainApplication.worker.submit(task); 89 90 }
Note:
See TracChangeset
for help on using the changeset viewer.