Changeset 35645 in osm for applications/editors/josm/plugins
- Timestamp:
- 2020-11-16T17:24:45+01:00 (4 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/build.xml
r35539 r35645 4 4 <property name="commit.message" value="Changed constructor for Plugin"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 6976"/>6 <property name="plugin.main.version" value="17161"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/CadastrePlugin.java
r35167 r35645 37 37 import org.openstreetmap.josm.gui.preferences.PreferenceDialog; 38 38 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 39 import org.openstreetmap.josm.gui.preferences.map.MapPreference;40 39 import org.openstreetmap.josm.gui.preferences.projection.ProjectionPreference; 41 40 import org.openstreetmap.josm.gui.util.GuiHelper; … … 71 70 * Don-vip<vincent.privat@gmail.com> for the maintenance and Edigeo support 72 71 * 73 * @version 3. 072 * @version 3.1 74 73 * <br>History: 75 74 * <br>0.1 17-Jun-2008 first prototype using a first Lambert projection impl. in core … … 529 528 */ 530 529 public static void askToChangeProjection() { 531 GuiHelper.runInEDTAndWait(new Runnable() { 532 @Override 533 public void run() { 534 if (JOptionPane.showConfirmDialog(MainApplication.getMainFrame(), 535 tr("To enable the cadastre WMS plugin, change\n" 536 + "the current projection to one of the cadastre\n" 537 + "projections and retry"), 538 tr("Change the current projection"), JOptionPane.OK_CANCEL_OPTION) 539 == JOptionPane.OK_OPTION) { 540 PreferenceDialog p = new PreferenceDialog(MainApplication.getMainFrame()); 541 p.selectPreferencesTabByClass(MapPreference.class); 542 p.getTabbedPane().getSetting(ProjectionPreference.class).selectProjection(ProjectionPreference.lambert_cc9); 543 p.setVisible(true); 544 } 530 GuiHelper.runInEDTAndWait(() -> { 531 if (JOptionPane.showConfirmDialog(MainApplication.getMainFrame(), 532 tr("To enable the cadastre WMS plugin, change\n" 533 + "the current projection to one of the cadastre\n" 534 + "projections and retry"), 535 tr("Change the current projection"), JOptionPane.OK_CANCEL_OPTION) 536 == JOptionPane.OK_OPTION) { 537 PreferenceDialog p = new PreferenceDialog(MainApplication.getMainFrame()); 538 p.selectPreferencesTabByClass(ProjectionPreference.class); 539 p.getTabbedPane().getSetting(ProjectionPreference.class).selectProjection(ProjectionPreference.lambert_cc9); 540 p.setVisible(true); 545 541 } 546 542 });
Note:
See TracChangeset
for help on using the changeset viewer.