Ignore:
Timestamp:
2016-08-23T22:07:06+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13429 - Clean validator tree and use listener to find changes (patch by michael2402) - gsoc-core

Location:
trunk/src/org/openstreetmap/josm/data/validation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java

    r10765 r10880  
    183183    private static void loadIgnoredErrors() {
    184184        ignoredErrors.clear();
    185         if (Main.pref.getBoolean(ValidatorPreference.PREF_USE_IGNORE, true)) {
     185        if (ValidatorPreference.PREF_USE_IGNORE.get()) {
    186186            Path path = Paths.get(getValidatorDir()).resolve("ignorederrors");
    187187            if (Files.exists(path)) {
     
    217217
    218218    public static synchronized void initializeErrorLayer() {
    219         if (!Main.pref.getBoolean(ValidatorPreference.PREF_LAYER, true))
     219        if (!ValidatorPreference.PREF_LAYER.get())
    220220            return;
    221221        if (errorLayer == null) {
  • trunk/src/org/openstreetmap/josm/data/validation/TestError.java

    r10778 r10880  
    269269    }
    270270
     271    /**
     272     * Set the tester that raised the error.
     273     * @param tester te tester
     274     */
    271275    public void setTester(Test tester) {
    272276        this.tester = tester;
Note: See TracChangeset for help on using the changeset viewer.