Revision 31946 branches/v2_0_0_prep/extensions/extGeocoding/src/org/gvsig/geocoding/gui/TableResultsModel.java
TableResultsModel.java | ||
---|---|---|
35 | 35 |
|
36 | 36 |
import org.cresques.cts.IProjection; |
37 | 37 |
import org.gvsig.andami.PluginServices; |
38 |
import org.gvsig.app.project.documents.view.gui.View; |
|
38 |
import org.gvsig.app.project.documents.view.gui.DefaultViewPanel; |
|
39 |
import org.gvsig.app.project.documents.view.gui.IView; |
|
39 | 40 |
import org.gvsig.fmap.dal.exception.DataException; |
40 | 41 |
import org.gvsig.fmap.dal.feature.Feature; |
41 | 42 |
import org.gvsig.fmap.dal.feature.FeatureSet; |
... | ... | |
423 | 424 |
if (ps != null) { |
424 | 425 |
columnNames[0] = ps.getText("fid"); |
425 | 426 |
columnNames[1] = ps.getText("fscore"); |
426 |
View view = control.getCurrentView(); |
|
427 |
IView view = control.getCurrentView();
|
|
427 | 428 |
if (view != null) { |
428 |
MapContext context = view.getModel().getMapContext();
|
|
429 |
MapContext context = ((DefaultViewPanel)view).getModel().getMapContext();
|
|
429 | 430 |
MapControl mControl = new MapControl(); |
430 | 431 |
mControl.setMapContext(context); |
431 | 432 |
IProjection proj = mControl.getProjection(); |
Also available in: Unified diff