Changeset 7404 in osm


Ignore:
Timestamp:
2008-04-18T00:36:34+02:00 (16 years ago)
Author:
frederik
Message:
  • fix compatibility with newer JOSM versions where getPreferencesColor is moved from SimplePaintVisitor to Preferences
File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/Severity.java

    r3037 r7404  
    33import java.awt.Color;
    44
    5 import org.openstreetmap.josm.data.osm.visitor.SimplePaintVisitor;
     5import org.openstreetmap.josm.data.Preferences;
    66
    77/** The error severity */
    88public enum Severity {
    99        /** Error messages */
    10         ERROR("Errors", "error.gif",       SimplePaintVisitor.getPreferencesColor("validation error", Color.RED)),
     10        ERROR("Errors", "error.gif",       Preferences.getPreferencesColor("validation error", Color.RED)),
    1111        /** Warning messages */
    12         WARNING("Warnings", "warning.gif", SimplePaintVisitor.getPreferencesColor("validation warning", Color.YELLOW)),
     12        WARNING("Warnings", "warning.gif", Preferences.getPreferencesColor("validation warning", Color.YELLOW)),
    1313        /** Other messages */
    14         OTHER("Other", "other.gif",        SimplePaintVisitor.getPreferencesColor("validation other", Color.CYAN));
     14        OTHER("Other", "other.gif",        Preferences.getPreferencesColor("validation other", Color.CYAN));
    1515       
    1616        /** Description of the severity code */
Note: See TracChangeset for help on using the changeset viewer.