Revision 2177 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.fmap/src/main/java/org/gvsig/raster/fmap/layers/DefaultFLyrRaster.java
DefaultFLyrRaster.java | ||
---|---|---|
303 | 303 |
try { |
304 | 304 |
if(!getDataStore().isOpen()) |
305 | 305 |
dataStore = rManager.getProviderServices().open(params); |
306 |
else |
|
307 |
dataStore.reload(); |
|
306 | 308 |
} catch (NotSupportedExtensionException e) { |
307 | 309 |
throw new LoadLayerException(this.getName()); |
308 | 310 |
} catch (RasterDriverException e) { |
... | ... | |
1574 | 1576 |
public void reload() throws ReloadLayerException { |
1575 | 1577 |
try { |
1576 | 1578 |
super.reload(); |
1577 |
if (getMapContext() == null) |
|
1578 |
return; |
|
1579 | 1579 |
load(); |
1580 | 1580 |
if (isStopped()) |
1581 | 1581 |
disableStopped(); |
1582 |
getMapContext().invalidate(); |
|
1582 |
if (getMapContext() != null) |
|
1583 |
getMapContext().invalidate(); |
|
1583 | 1584 |
} catch (LoadLayerException e) { |
1584 | 1585 |
setAvailable(false); |
1585 | 1586 |
throw new ReloadLayerException(getName(), e); |
Also available in: Unified diff