Changeset 9692 in josm


Ignore:
Timestamp:
2016-01-31T11:08:34+01:00 (4 years ago)
Author:
simon04
Message:

fix #12453 - Add icon for "discourage upload" (icon by Klumbumbus)

Location:
trunk
Files:
1 added
1 edited

Legend:

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

    r9067 r9692  
    66import java.awt.event.ActionEvent;
    77
     8import javax.swing.AbstractAction;
     9
    810import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
    911import org.openstreetmap.josm.gui.layer.OsmDataLayer;
     12import org.openstreetmap.josm.tools.ImageProvider;
    1013
    11 public class ToggleUploadDiscouragedLayerAction extends JosmAction {
     14/**
     15 * An action enabling/disabling the {@linkplain OsmDataLayer#setUploadDiscouraged(boolean) discouraged upload flag}
     16 * of the layer specified in the constructor.
     17 */
     18public class ToggleUploadDiscouragedLayerAction extends AbstractAction {
    1219
    1320    private final transient OsmDataLayer layer;
    1421
     22    /**
     23     * Constructs a new {@code ToggleUploadDiscouragedLayerAction}.
     24     * @param layer the layer for which to toggle the {@linkplain OsmDataLayer#setUploadDiscouraged(boolean) discouraged upload flag}
     25     */
    1526    public ToggleUploadDiscouragedLayerAction(OsmDataLayer layer) {
    16         super(tr("Encourage/discourage upload"), null, null, null, false);
     27        super(tr("Encourage/discourage upload"), ImageProvider.get("no_upload"));
    1728        this.layer = layer;
    1829    }
Note: See TracChangeset for help on using the changeset viewer.