Last change
on this file since 10936 was 10936, checked in by Don-vip, 8 years ago |
sonar
|
-
Property svn:eol-style
set to
native
|
File size:
900 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 | import java.util.Collections;
|
---|
7 |
|
---|
8 | import org.openstreetmap.josm.gui.datatransfer.importers.AbstractOsmDataPaster;
|
---|
9 | import org.openstreetmap.josm.gui.datatransfer.importers.FilePaster;
|
---|
10 | import org.openstreetmap.josm.gui.datatransfer.importers.OsmLinkPaster;
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * This transfer handler allows to e.g. drop files to open them.
|
---|
14 | *
|
---|
15 | * @author Michael Zangl
|
---|
16 | * @since 10620
|
---|
17 | * @since 10881 rename
|
---|
18 | */
|
---|
19 | public class OpenTransferHandler extends AbstractStackTransferHandler {
|
---|
20 |
|
---|
21 | private static final Collection<AbstractOsmDataPaster> SUPPORTED = Arrays.asList(new FilePaster(), new OsmLinkPaster());
|
---|
22 |
|
---|
23 | @Override
|
---|
24 | protected Collection<AbstractOsmDataPaster> getSupportedPasters() {
|
---|
25 | return Collections.unmodifiableCollection(SUPPORTED);
|
---|
26 | }
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.