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/gui/dialogs/changeset/SingleChangesetDownloadPanel.java

    r6603 r7434  
    2020import org.openstreetmap.josm.gui.widgets.ChangesetIdTextField;
    2121import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator;
     22import org.openstreetmap.josm.io.OnlineResource;
    2223
    2324/**
     
    9899
    99100        protected void updateEnabledState() {
    100             setEnabled(tfChangesetId.readIds());
     101            setEnabled(tfChangesetId.readIds() && !Main.isOffline(OnlineResource.OSM_API));
    101102        }
    102103
Note: See TracChangeset for help on using the changeset viewer.