Changeset 29717 in osm
- Timestamp:
- 2013-06-28T00:53:11+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionRefineGeoRef.java
r29714 r29717 5 5 6 6 import java.awt.event.ActionEvent; 7 8 import javax.swing.JOptionPane; 7 9 8 10 import org.openstreetmap.josm.Main; … … 37 39 rasterImageGeoreferencer.addListener(); 38 40 if (Main.pref.getBoolean("cadastrewms.noImageCropping", false) == false) 39 rasterImageGeoreferencer.startCropping(wmsLayer); 41 { 42 Object[] options = { "Yes", "No" }; 43 int ret = JOptionPane.showOptionDialog( null, 44 tr("Would you like to crop image\nagain ?"), 45 tr("Image cropping"), 46 JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, 47 null, options, options[0]); 48 if (ret == JOptionPane.OK_OPTION) 49 rasterImageGeoreferencer.startCropping(wmsLayer); 50 else 51 rasterImageGeoreferencer.startGeoreferencing(wmsLayer); 52 } 40 53 else 41 54 rasterImageGeoreferencer.startGeoreferencing(wmsLayer);
Note:
See TracChangeset
for help on using the changeset viewer.