Ignore:
Timestamp:
2017-04-23T19:14:12+02:00 (7 years ago)
Author:
Don-vip
Message:

add unit test for Main.postConstructorProcessCmdLine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java

    r11848 r11986  
    2222import java.util.List;
    2323import java.util.Set;
     24import java.util.concurrent.Future;
    2425import java.util.regex.Matcher;
    2526import java.util.regex.Pattern;
     
    8485     * Filenames will not be saved in history.
    8586     * @param fileList A list of files
    86      */
    87     public static void openFiles(List<File> fileList) {
    88         openFiles(fileList, false);
     87     * @return the future task
     88     * @since 11986 (return task)
     89     */
     90    public static Future<?> openFiles(List<File> fileList) {
     91        return openFiles(fileList, false);
    8992    }
    9093
     
    9396     * @param fileList A list of files
    9497     * @param recordHistory {@code true} to save filename in history (default: false)
    95      */
    96     public static void openFiles(List<File> fileList, boolean recordHistory) {
     98     * @return the future task
     99     * @since 11986 (return task)
     100     */
     101    public static Future<?> openFiles(List<File> fileList, boolean recordHistory) {
    97102        OpenFileTask task = new OpenFileTask(fileList, null);
    98103        task.setRecordHistory(recordHistory);
    99         Main.worker.submit(task);
     104        return Main.worker.submit(task);
    100105    }
    101106
Note: See TracChangeset for help on using the changeset viewer.