Changeset 11510 in josm
- Timestamp:
- 2017-01-29T23:58:49+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r11374 r11510 580 580 * Should set {@link #menu} 581 581 */ 582 protected void initializeMainWindow() { 583 // can be implementd by subclasses 584 } 582 protected abstract void initializeMainWindow(); 585 583 586 584 private static class InitializationTask implements Callable<Void> { -
trunk/src/org/openstreetmap/josm/data/imagery/CachedAttributionBingAerialTileSource.java
r11288 r11510 4 4 import java.io.IOException; 5 5 import java.io.StringReader; 6 import java.net.MalformedURLException; 6 7 import java.net.URL; 7 8 import java.util.List; … … 14 15 import org.openstreetmap.josm.gui.util.GuiHelper; 15 16 import org.openstreetmap.josm.io.CacheCustomContent; 17 import org.openstreetmap.josm.io.OnlineResource; 16 18 import org.openstreetmap.josm.tools.HttpClient; 17 19 import org.xml.sax.InputSource; … … 58 60 return r.getBytes("UTF-8"); 59 61 } 62 63 @Override 64 protected void checkOfflineAccess() { 65 try { 66 String attributionUrl = getAttributionUrl().toExternalForm(); 67 OnlineResource.ALL.checkOfflineAccess(attributionUrl, attributionUrl); 68 } catch (MalformedURLException e) { 69 Main.error(e); 70 } 71 } 60 72 } 61 73 -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityAction.java
r11223 r11510 214 214 } 215 215 216 protected void applyValueToLayer(T layer) { 217 } 216 abstract void applyValueToLayer(T layer); 218 217 219 218 protected double getRealValue() { -
trunk/src/org/openstreetmap/josm/io/CacheCustomContent.java
r11288 r11510 103 103 } 104 104 105 protected void checkOfflineAccess() { 106 // To be overriden by subclasses 107 } 105 /** 106 * Ensures underlying resource is not accessed in offline mode. 107 * @throws OfflineAccessException if resource is accessed in offline mode 108 */ 109 protected abstract void checkOfflineAccess(); 108 110 109 111 /**
Note:
See TracChangeset
for help on using the changeset viewer.