Ignore:
Timestamp:
2017-08-26T21:28:55+02:00 (7 years ago)
Author:
Don-vip
Message:

see #14704 - allow to export validator errors ("Save as" in validator layer contextual menu). Same format than Osmose

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/ValidatorLayer.java

    r12636 r12667  
    55
    66import java.awt.Graphics2D;
     7import java.io.File;
    78import java.util.Collections;
    89import java.util.Enumeration;
     
    1516
    1617import org.openstreetmap.josm.actions.RenameLayerAction;
     18import org.openstreetmap.josm.actions.SaveActionBase;
    1719import org.openstreetmap.josm.data.Bounds;
    1820import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
     
    2931import org.openstreetmap.josm.gui.layer.LayerManager.LayerOrderChangeEvent;
    3032import org.openstreetmap.josm.gui.layer.LayerManager.LayerRemoveEvent;
     33import org.openstreetmap.josm.io.ValidatorErrorExporter;
    3134import org.openstreetmap.josm.tools.ImageProvider;
    3235import org.openstreetmap.josm.tools.MultiMap;
     
    140143                new RenameLayerAction(null, this),
    141144                SeparatorLayerAction.INSTANCE,
    142                 new LayerListPopup.InfoAction(this) };
     145                new LayerListPopup.InfoAction(this),
     146                new LayerSaveAsAction(this)
     147                };
     148    }
     149
     150    @Override
     151    public File createAndOpenSaveFileChooser() {
     152        return SaveActionBase.createAndOpenSaveFileChooser(tr("Save Validation errors file"), ValidatorErrorExporter.FILE_FILTER);
    143153    }
    144154
Note: See TracChangeset for help on using the changeset viewer.