source: osm/applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionRefineGeoRef.java@ 30701

Last change on this file since 30701 was 30701, checked in by donvip, 10 years ago

[josm_plugins] fix various compilation warnings

File size: 1.2 KB
Line 
1package cadastre_fr;
2
3import static org.openstreetmap.josm.tools.I18n.marktr;
4import static org.openstreetmap.josm.tools.I18n.tr;
5
6import java.awt.event.ActionEvent;
7
8import org.openstreetmap.josm.actions.JosmAction;
9
10public class MenuActionRefineGeoRef extends JosmAction {
11
12 public static String name = marktr("Refine georeferencing");
13
14 private WMSLayer wmsLayer;
15 private RasterImageGeoreferencer rasterImageGeoreferencer;
16
17 public MenuActionRefineGeoRef(WMSLayer wmsLayer) {
18 super(tr(name), null, tr("Improve georeferencing (only raster images)"), null, false);
19 this.wmsLayer = wmsLayer;
20 rasterImageGeoreferencer = new RasterImageGeoreferencer();
21 }
22
23 @Override
24 public void actionPerformed(ActionEvent arg0) {
25 if(!wmsLayer.isRaster())
26 {
27 System.out.println("MenuActionRefineGeoRef called for unexpected layer type");
28 return;
29 }
30 if (CadastrePlugin.isCadastreProjection()) {
31 //wmsLayer = WMSDownloadAction.getLayer();
32 } else {
33 CadastrePlugin.askToChangeProjection();
34 }
35 rasterImageGeoreferencer.addListener();
36 rasterImageGeoreferencer.startGeoreferencing(wmsLayer);
37 }
38
39}
Note: See TracBrowser for help on using the repository browser.