Revision 27564 branches/v2_0_0_prep/extensions/extGeocoding/src/org/gvsig/geocoding/gui/TableResultsModel.java
TableResultsModel.java | ||
---|---|---|
363 | 363 |
*/ |
364 | 364 |
private void getMainColumnNames() { |
365 | 365 |
|
366 |
columnNames[0] = ps.getText("fid"); |
|
367 |
columnNames[1] = ps.getText("fsel"); |
|
368 |
columnNames[2] = ps.getText("fscore"); |
|
369 |
View view = GeocoUtils.getCurrentView(); |
|
370 |
if (view != null) { |
|
371 |
MapContext context = view.getModel().getMapContext(); |
|
372 |
MapControl mControl = new MapControl(); |
|
373 |
mControl.setMapContext(context); |
|
374 |
IProjection proj = mControl.getProjection(); |
|
375 |
if (proj.isProjected()) { |
|
366 |
if (ps != null) { |
|
367 |
columnNames[0] = ps.getText("fid"); |
|
368 |
columnNames[1] = ps.getText("fsel"); |
|
369 |
columnNames[2] = ps.getText("fscore"); |
|
370 |
View view = GeocoUtils.getCurrentView(); |
|
371 |
if (view != null) { |
|
372 |
MapContext context = view.getModel().getMapContext(); |
|
373 |
MapControl mControl = new MapControl(); |
|
374 |
mControl.setMapContext(context); |
|
375 |
IProjection proj = mControl.getProjection(); |
|
376 |
if (proj.isProjected()) { |
|
377 |
columnNames[3] = ps.getText("fx"); |
|
378 |
columnNames[4] = ps.getText("fy"); |
|
379 |
} else { |
|
380 |
columnNames[3] = ps.getText("flong"); |
|
381 |
columnNames[4] = ps.getText("flat"); |
|
382 |
} |
|
383 |
} else { |
|
376 | 384 |
columnNames[3] = ps.getText("fx"); |
377 | 385 |
columnNames[4] = ps.getText("fy"); |
378 |
} else { |
|
379 |
columnNames[3] = ps.getText("flong"); |
|
380 |
columnNames[4] = ps.getText("flat"); |
|
381 | 386 |
} |
382 |
} else { |
|
383 |
columnNames[3] = ps.getText("fx"); |
|
384 |
columnNames[4] = ps.getText("fy"); |
|
385 | 387 |
} |
386 | 388 |
} |
387 | 389 |
|
Also available in: Unified diff