Package org.openstreetmap.josm.data.validation

Examples of org.openstreetmap.josm.data.validation.Severity


                            : ai.val instanceof String
                            ? (String) ai.val
                            : null;
                    if (ai.key.startsWith("throw")) {
                        try {
                            final Severity severity = Severity.valueOf(ai.key.substring("throw".length()).toUpperCase());
                            check.errors.put(ai, severity);
                        } catch (IllegalArgumentException e) {
                            Main.warn("Unsupported "+ai.key+" instruction. Allowed instructions are "+POSSIBLE_THROWS);
                        }
                    } else if ("fixAdd".equals(ai.key)) {
View Full Code Here


        DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
        Object nodeInfo = node.getUserObject();

        if (nodeInfo instanceof Severity) {
            Severity s = (Severity) nodeInfo;
            setIcon(ImageProvider.get("data", s.getIcon()));
        } else if (nodeInfo instanceof TestError) {
            TestError error = (TestError) nodeInfo;
            MultipleNameVisitor v = new MultipleNameVisitor();
            v.visit(error.getPrimitives());
            setText(v.getText());
View Full Code Here

        final Boolean other = ValidatorPreference.PREF_OTHER.get();
        for (TestError e : errors) {
            if (e.getIgnored()) {
                continue;
            }
            Severity s = e.getSeverity();
            if(!other && s == Severity.OTHER) {
                continue;
            }
            String d = e.getDescription();
            String m = e.getMessage();
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.data.validation.Severity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.