Ignore:
Timestamp:
2014-08-20T03:07:15+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #8885 (see #4614) - add offline mode with new command line argument --offline which can take one of several of these values (comma separated):

  • josm_website: to disable all accesses to JOSM website (when not cached, disables Getting Started page, help, plugin list, styles, imagery, presets, rules)
  • osm_api: to disable all accesses to OSM API (disables download, upload, changeset queries, history, user message notification)
  • all: alias to disable all values. Currently equivalent to "josm_website,osm_api"

Plus improved javadoc, fixed EDT violations, and fixed a bug with HTTP redirection sent without "Location" header

File:
1 edited

Legend:

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

    r6380 r7434  
    1313import org.openstreetmap.josm.tools.Shortcut;
    1414
     15/**
     16 * Action that deletes selected objects.
     17 * @since 770
     18 */
    1519public final class DeleteAction extends JosmAction {
    1620
     21    /**
     22     * Constructs a new {@code DeleteAction}.
     23     */
    1724    public DeleteAction() {
    1825        super(tr("Delete"), "dialogs/delete", tr("Delete selected objects."),
     
    2330    @Override
    2431    public void actionPerformed(ActionEvent e) {
    25         if (!isEnabled())
    26             return;
    27         if(!Main.map.mapView.isActiveLayerVisible())
     32        if (!isEnabled() || !Main.map.mapView.isActiveLayerVisible())
    2833            return;
    2934        org.openstreetmap.josm.actions.mapmode.DeleteAction.doActionPerformed(e);
Note: See TracChangeset for help on using the changeset viewer.