Ignore:
Timestamp:
2013-09-10T21:04:07+02:00 (12 years ago)
Author:
pieren
Message:

#9052 add load/save sessions feature

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java

    r29829 r29922  
    55import static org.openstreetmap.josm.tools.I18n.marktr;
    66import static org.openstreetmap.josm.tools.I18n.tr;
     7import static org.openstreetmap.josm.io.session.SessionWriter.registerSessionLayerExporter;
     8import static org.openstreetmap.josm.io.session.SessionReader.registerSessionLayerImporter;
    79
    810import java.awt.event.ActionEvent;
     
    138140 *                 - workaround on address help tool when switching to full screen
    139141 *                 - improvement when clicking on existing node address street in mode relation
    140  *                 - option to simplify raster images in 2 bits colors (like images served in the past).                   
     142 *                 - option to simplify raster images in 2 bits colors (like images served in the past).
     143 * 2.6 10-Sep-2013 - add JOSM "sessions" feature support (list of layers stored in a file)                   
    141144 */
    142145public class CadastrePlugin extends Plugin {
     
    208211
    209212        UploadAction.registerUploadHook(new CheckSourceUploadHook());
     213       
     214        registerSessionLayerExporter(WMSLayer.class , CadastreSessionExporter.class);
     215        registerSessionLayerImporter("cadastre-fr", CadastreSessionImporter.class);
    210216
    211217    }
Note: See TracChangeset for help on using the changeset viewer.