Ignore:
Timestamp:
2014-01-16T23:31:29+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #9401 - Do not create MergeLayerAction several times + fix EDT violation

File:
1 edited

Legend:

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

    r6084 r6706  
    1919import org.openstreetmap.josm.tools.Shortcut;
    2020
     21/**
     22 * Action that merges two or more OSM data layers.
     23 * @since 1890
     24 */
    2125public class MergeLayerAction extends AbstractMergeAction {
    2226
     27    /**
     28     * Constructs a new {@code MergeLayerAction}.
     29     */
    2330    public MergeLayerAction() {
    2431        super(tr("Merge layer"), "dialogs/mergedown",
     
    5865    }
    5966
     67    /**
     68     * Merges a list of layers together.
     69     * @param sourceLayers The layers to merge
     70     */
    6071    public void merge(List<Layer> sourceLayers) {
    6172        doMerge(sourceLayers, sourceLayers);
    6273    }
    6374
     75    /**
     76     * Merges the given source layer with another one, determined at runtime.
     77     * @param sourceLayer The source layer to merge
     78     */
    6479    public void merge(Layer sourceLayer) {
    6580        if (sourceLayer == null)
     
    96111
    97112    /**
    98      * returns true if the user wants to cancel, false if they want to continue
     113     * Warns about a discouraged merge operation, ask for confirmation.
     114     * @param sourceLayer The source layer
     115     * @param targetLayer The target layer
     116     * @return {@code true} if the user wants to cancel, {@code false} if they want to continue
    99117     */
    100118    public static final boolean warnMergingUploadDiscouragedLayers(Layer sourceLayer, Layer targetLayer) {
Note: See TracChangeset for help on using the changeset viewer.