Changeset 18014 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2021-07-13T23:56:50+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AbstractInfoAction.java
r16553 r18014 51 51 String toolbarId, boolean installAdapters) { 52 52 super(name, iconName, tooltip, shortcut, register, toolbarId, installAdapters); 53 }54 55 /**56 * Asks user confirmation before launching a large number of browser windows.57 * @param numBrowsers the number of browser windows to open58 * @return {@code true} if the user confirms, {@code false} otherwise59 * @deprecated use {@link OpenBrowserAction#confirmLaunchMultiple(int)}60 */61 @Deprecated62 public static boolean confirmLaunchMultiple(int numBrowsers) {63 return OpenBrowserAction.confirmLaunchMultiple(numBrowsers);64 53 } 65 54 -
trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java
r17556 r18014 83 83 File[] files = fc.getSelectedFiles(); 84 84 OpenFileTask task = new OpenFileTask(Arrays.asList(files), fc.getFileFilter()); 85 task.set RecordHistory(true);85 task.setOptions(Options.RECORD_HISTORY); 86 86 MainApplication.worker.submit(task); 87 87 } … … 101 101 public static Future<?> openFiles(List<File> fileList) { 102 102 return openFiles(fileList, (Options[]) null); 103 }104 105 /**106 * Open a list of files. The complete list will be passed to batch importers.107 * @param fileList A list of files108 * @param recordHistory {@code true} to save filename in history (default: false)109 * @return the future task110 * @since 11986 (return task)111 * @deprecated Since 17534, use {@link OpenFileAction#openFiles(List, Options...)} with {@link Options#RECORD_HISTORY} instead.112 */113 @Deprecated114 public static Future<?> openFiles(List<File> fileList, boolean recordHistory) {115 Options[] options = recordHistory ? new Options[] {Options.RECORD_HISTORY} : null;116 return openFiles(fileList, options);117 103 } 118 104 … … 181 167 public OpenFileTask(List<File> files, FileFilter fileFilter) { 182 168 this(files, fileFilter, tr("Opening files")); 183 }184 185 /**186 * Sets whether to save filename in history (for list of recently opened files).187 * @param recordHistory {@code true} to save filename in history (default: false)188 * @deprecated since 17534 (use {@link #setOptions} instead).189 */190 @Deprecated191 public void setRecordHistory(boolean recordHistory) {192 if (recordHistory) {193 this.options.add(Options.RECORD_HISTORY);194 } else {195 this.options.remove(Options.RECORD_HISTORY);196 }197 169 } 198 170 -
trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java
r17188 r18014 325 325 * @param w the way to simplify 326 326 * @return The sequence of commands to run 327 * @since 6411328 * @deprecated Replaced by {@link #createSimplifyCommand(Way)}. You can also use {@link #simplifyWays(List, double)} directly.329 */330 @Deprecated331 public final SequenceCommand simplifyWay(Way w) {332 return createSimplifyCommand(w);333 }334 335 /**336 * Creates the SequenceCommand to simplify a way with a given threshold.337 *338 * @param w the way to simplify339 * @param threshold the max error threshold340 * @return The sequence of commands to run341 * @since 6411342 * @deprecated Replaced by {@link #createSimplifyCommand(Way, double)}. You can also use {@link #simplifyWays(List, double)} directly.343 */344 @Deprecated345 public static SequenceCommand simplifyWay(Way w, double threshold) {346 return createSimplifyCommand(w, threshold);347 }348 349 /**350 * Creates the SequenceCommand to simplify a way with default threshold.351 *352 * @param w the way to simplify353 * @return The sequence of commands to run354 327 * @since 15419 355 328 */
Note:
See TracChangeset
for help on using the changeset viewer.