Ignore:
Timestamp:
2014-08-20T03:07:15+02:00 (10 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/relation/DownloadSelectedIncompleteMembersAction.java

    r7005 r7434  
    1313import org.openstreetmap.josm.data.osm.Relation;
    1414import org.openstreetmap.josm.gui.dialogs.relation.DownloadRelationMemberTask;
     15import org.openstreetmap.josm.io.OnlineResource;
    1516import org.openstreetmap.josm.tools.ImageProvider;
    1617import org.openstreetmap.josm.tools.Predicate;
     
    6364        updateEnabledState();
    6465    }
     66
     67    @Override
     68    protected void updateEnabledState() {
     69        setEnabled(!relations.isEmpty() && !Main.isOffline(OnlineResource.OSM_API));
     70    }
    6571}
Note: See TracChangeset for help on using the changeset viewer.