diff --git src/org/openstreetmap/josm/data/validation/ValidationTask.java src/org/openstreetmap/josm/data/validation/ValidationTask.java
index 02b857898..30efd3d9b 100644
|
|
import org.openstreetmap.josm.data.osm.OsmPrimitive;
|
5 | 5 | import org.openstreetmap.josm.data.preferences.sources.ValidatorPrefHelper; |
6 | 6 | import org.openstreetmap.josm.gui.MainApplication; |
7 | 7 | import org.openstreetmap.josm.gui.MapFrame; |
| 8 | import org.openstreetmap.josm.gui.Notification; |
8 | 9 | import org.openstreetmap.josm.gui.PleaseWaitRunnable; |
9 | 10 | import org.openstreetmap.josm.gui.layer.ValidatorLayer; |
10 | 11 | import org.openstreetmap.josm.gui.progress.ProgressMonitor; |
11 | 12 | import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; |
12 | 13 | import org.openstreetmap.josm.gui.util.GuiHelper; |
13 | 14 | |
| 15 | import javax.swing.JOptionPane; |
14 | 16 | import java.util.ArrayList; |
15 | 17 | import java.util.Collection; |
16 | 18 | import java.util.List; |
… |
… |
public class ValidationTask extends PleaseWaitRunnable {
|
101 | 103 | error.updateIgnored(); |
102 | 104 | } |
103 | 105 | } |
| 106 | |
| 107 | for (TestError error : errors) { |
| 108 | if (error.getPrimitives().stream().anyMatch(it -> !it.isDrawable())) { |
| 109 | GuiHelper.runInEDT(() -> { |
| 110 | final String message = "<b>" + |
| 111 | tr("The validation layer includes results that are hidden by a filter.") + "</b><br/>" + |
| 112 | tr("Please review active filters to see the hidden results."); |
| 113 | new Notification(message) |
| 114 | .setDuration(Notification.TIME_LONG) |
| 115 | .setIcon(JOptionPane.WARNING_MESSAGE) |
| 116 | .setHelpTopic("Dialog/Validator") |
| 117 | .show(); |
| 118 | }); |
| 119 | break; |
| 120 | } |
| 121 | } |
104 | 122 | } |
105 | 123 | |
106 | 124 | /** |