Last change
on this file since 10881 was 10881, checked in by Don-vip, 8 years ago |
fix #13430 - Allow paste of OSM links (patch by michael2402) - gsoc-core
|
-
Property svn:eol-style
set to
native
|
File size:
834 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.datatransfer;
|
---|
3 |
|
---|
4 | import java.util.Arrays;
|
---|
5 | import java.util.Collection;
|
---|
6 |
|
---|
7 | import org.openstreetmap.josm.gui.datatransfer.importers.AbstractOsmDataPaster;
|
---|
8 | import org.openstreetmap.josm.gui.datatransfer.importers.FilePaster;
|
---|
9 | import org.openstreetmap.josm.gui.datatransfer.importers.OsmLinkPaster;
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * This transfer handler allows to e.g. drop files to open them.
|
---|
13 | *
|
---|
14 | * @author Michael Zangl
|
---|
15 | * @since 10620
|
---|
16 | * @since 10881 rename
|
---|
17 | */
|
---|
18 | public class OpenTransferHandler extends AbstractStackTransferHandler {
|
---|
19 |
|
---|
20 | private static final Collection<AbstractOsmDataPaster> SUPPORTED = Arrays.asList(new FilePaster(), new OsmLinkPaster());
|
---|
21 |
|
---|
22 | @Override
|
---|
23 | protected Collection<AbstractOsmDataPaster> getSupportedPasters() {
|
---|
24 | return SUPPORTED;
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.