Revision 27905 branches/v2_0_0_prep/extensions/extGeocoding/src/org/gvsig/geocoding/extension/RelateGeocodingResultsExtension.java
RelateGeocodingResultsExtension.java | ||
---|---|---|
36 | 36 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
37 | 37 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
38 | 38 |
import org.gvsig.geocoding.gui.relation.RelatePanel; |
39 |
import org.gvsig.geocoding.utils.GeocodingTags; |
|
39 | 40 |
import org.gvsig.project.document.table.FeatureTableDocument; |
40 | 41 |
import org.slf4j.Logger; |
41 | 42 |
import org.slf4j.LoggerFactory; |
... | ... | |
61 | 62 |
public class RelateGeocodingResultsExtension extends Extension implements |
62 | 63 |
IPreferenceExtension { |
63 | 64 |
|
64 |
private static final String RELATEGEOCODING = "RELATEGEOCODING"; |
|
65 |
|
|
65 | 66 |
|
66 | 67 |
private static final Logger log = LoggerFactory |
67 | 68 |
.getLogger(RelateGeocodingResultsExtension.class); |
... | ... | |
80 | 81 |
*/ |
81 | 82 |
public void execute(String actionCommand) { |
82 | 83 |
|
83 |
if (actionCommand.equalsIgnoreCase(RELATEGEOCODING)) { |
|
84 |
if (actionCommand.equalsIgnoreCase(GeocodingTags.RELATEGEOCODING)) {
|
|
84 | 85 |
|
85 | 86 |
//get layer from gvSIG view |
86 | 87 |
FLyrVect lyr = control.getSelectedFLyrVect(); |
... | ... | |
120 | 121 |
if (lyr instanceof FLyrVect) { |
121 | 122 |
FLyrVect ly = (FLyrVect) lyr; |
122 | 123 |
List<FeatureTableDocument> tables = control.getListgvSIGTables(); |
123 |
Object obj = ly.getProperty(control.GEOCODINGRESULTS);
|
|
124 |
Object obj = ly.getProperty(GeocodingTags.GEOCODINGPROPERTY);
|
|
124 | 125 |
if (obj instanceof FeatureTableDocument |
125 | 126 |
&& tables.size() > 0) { |
126 | 127 |
return true; |
Also available in: Unified diff