Changeset 17852 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-05-02T05:53:40+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/ValidationTask.java
r17617 r17852 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.validation; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 import java.util.ArrayList; 7 import java.util.Collection; 8 import java.util.List; 9 10 import javax.swing.JOptionPane; 3 11 4 12 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 6 14 import org.openstreetmap.josm.gui.MainApplication; 7 15 import org.openstreetmap.josm.gui.MapFrame; 16 import org.openstreetmap.josm.gui.Notification; 8 17 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 9 18 import org.openstreetmap.josm.gui.layer.ValidatorLayer; … … 11 20 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 12 21 import org.openstreetmap.josm.gui.util.GuiHelper; 13 14 import java.util.ArrayList;15 import java.util.Collection;16 import java.util.List;17 18 import static org.openstreetmap.josm.tools.I18n.tr;19 22 20 23 /** … … 102 105 } 103 106 } 107 108 if (errors.stream().anyMatch(e -> !e.getPrimitives().stream().allMatch(OsmPrimitive::isDrawable))) { 109 final String msg = "<b>" + tr("Validation results contain elements hidden by a filter.") + "</b><br/>" 110 + tr("Please review active filters to see the hidden results."); 111 GuiHelper.runInEDT(() -> new Notification(msg) 112 .setDuration(Notification.TIME_LONG) 113 .setIcon(JOptionPane.WARNING_MESSAGE) 114 .setHelpTopic("Dialog/Validator") 115 .show()); 116 } 104 117 } 105 118
Note:
See TracChangeset
for help on using the changeset viewer.