Revision 31267
branches/v2_0_0_prep/extensions/extGeocoding/src/org/gvsig/geocoding/utils/PatternLoaderThread.java | ||
---|---|---|
32 | 32 |
import javax.swing.JOptionPane; |
33 | 33 |
|
34 | 34 |
import org.gvsig.andami.PluginServices; |
35 |
import org.gvsig.fmap.dal.DataStore; |
|
35 | 36 |
import org.gvsig.geocoding.pattern.GeocodingPattern; |
36 | 37 |
import org.gvsig.geocoding.pattern.impl.DefaultGeocodingPattern; |
37 | 38 |
import org.slf4j.Logger; |
... | ... | |
89 | 90 |
file.delete(); |
90 | 91 |
} |
91 | 92 |
if (ok) { |
93 |
DataStore store = null; |
|
94 |
try { |
|
95 |
store = GeocodingUtils.searchLayerInCurrentView(pattern); |
|
96 |
} catch (GeocodingNoDataStoreException e) { |
|
97 |
log.info("The layer isn't loaded in the current view"); |
|
98 |
PluginServices ps = PluginServices.getPluginServices(this); |
|
99 |
String title = PluginServices.getPluginServices(this).getText("nolayertitle"); |
|
100 |
String message = PluginServices.getPluginServices(this).getText("nolayer");; |
|
101 |
JOptionPane.showMessageDialog(null, |
|
102 |
message, |
|
103 |
title, |
|
104 |
JOptionPane.WARNING_MESSAGE); |
|
105 |
ok = false; |
|
106 |
} |
|
107 |
if(store == null){ |
|
108 |
ok = false; |
|
109 |
} |
|
92 | 110 |
// search the layer in the view |
93 | 111 |
// try { |
94 | 112 |
// // DataStore store = |
Also available in: Unified diff