Ignore:
Timestamp:
2018-06-13T22:17:23+02:00 (6 years ago)
Author:
Don-vip
Message:

see #11000 - Remote control: allow to specify layer_name for import

File:
1 edited

Legend:

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

    r12634 r13927  
    3232
    3333    @Override
    34     public Future<?> loadUrl(boolean newLayer, String url, ProgressMonitor progressMonitor) {
     34    public Future<?> loadUrl(DownloadParams settings, String url, ProgressMonitor progressMonitor) {
    3535        final Matcher matcher = Pattern.compile(URL_ID_PATTERN).matcher(url);
    3636        if (matcher.matches()) {
     
    3939            final PrimitiveId primitiveId = new SimplePrimitiveId(id, type);
    4040            final DownloadPrimitivesWithReferrersTask downloadTask = new DownloadPrimitivesWithReferrersTask(
    41                     newLayer, Collections.singletonList(primitiveId), true, true, null, null);
     41                    settings.isNewLayer(), Collections.singletonList(primitiveId), true, true, null, null);
    4242            return MainApplication.worker.submit(downloadTask);
    4343        } else {
Note: See TracChangeset for help on using the changeset viewer.