Changeset 35308 in osm for applications/editors/josm
- Timestamp:
- 2020-01-27T03:34:26+01:00 (5 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/build.xml
r35186 r35308 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="15 419"/>6 <property name="plugin.main.version" value="15786"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/download/CadastreDownloadTask.java
r35188 r35308 26 26 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 27 27 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 28 import org.openstreetmap.josm.gui.util.GuiHelper; 28 29 import org.openstreetmap.josm.plugins.fr.cadastre.api.CadastreAPI; 30 import org.openstreetmap.josm.spi.preferences.Config; 29 31 import org.openstreetmap.josm.tools.Logging; 30 32 import org.openstreetmap.josm.tools.Utils; … … 76 78 Logging.error(e); 77 79 } 80 } 81 List<CadastreDataLayer> layers = MainApplication.getLayerManager().getLayersOfType(CadastreDataLayer.class); 82 if (layers.size() > 1 && Config.getPref().getBoolean("cadastrewms.merge.data.layers")) { 83 GuiHelper.runInEDT(() -> MainApplication.getMenu().merge.merge(layers)); 78 84 } 79 85 }); -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/preferences/CadastrePreferenceSetting.java
r34458 r35308 65 65 66 66 private JCheckBox dontUseRelation = new JCheckBox(tr("Don''t use relation for addresses (but \"addr:street\" on elements).")); 67 68 private JCheckBox mergeDataLayers = new JCheckBox(tr("Merge downloaded cadastre data layers together.")); 67 69 68 70 private JRadioButton grabMultiplier1 = new JRadioButton("", true); … … 374 376 dontUseRelation.setToolTipText(tr("Enable this to use the tag \"add:street\" on nodes.")); 375 377 cadastrewms.add(dontUseRelation, GBC.eop().insets(0, 0, 0, 0)); 378 379 // separator 380 cadastrewms.add(new JSeparator(SwingConstants.HORIZONTAL), GBC.eol().fill(GBC.HORIZONTAL)); 381 382 // option to merge downloaded data layers 383 mergeDataLayers.setSelected(Config.getPref().getBoolean("cadastrewms.merge.data.layers", false)); 384 mergeDataLayers.setToolTipText(tr("Merge automatically all cadastre data layers in a single final layer.")); 385 cadastrewms.add(mergeDataLayers, GBC.eop().insets(0, 0, 0, 0)); 376 386 377 387 // end of dialog, scroll bar … … 454 464 CacheControl.cacheEnabled = enableCache.isSelected(); 455 465 Config.getPref().putBoolean("cadastrewms.addr.dontUseRelation", dontUseRelation.isSelected()); 466 Config.getPref().putBoolean("cadastrewms.merge.data.layers", mergeDataLayers.isSelected()); 456 467 CadastrePlugin.refreshConfiguration(); 457 468 CadastrePlugin.refreshMenu();
Note:
See TracChangeset
for help on using the changeset viewer.