Ignore:
Timestamp:
2010-07-27T21:43:12+02:00 (14 years ago)
Author:
jttt
Message:

Update to latest josm (no changes, only needs recompiling)

File:
1 edited

Legend:

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

    r21539 r22457  
    99import java.util.HashMap;
    1010import java.util.LinkedList;
    11 import java.util.Map;
    12 
    13 import org.openstreetmap.josm.data.osm.Node;
     11
    1412import org.openstreetmap.josm.data.osm.Relation;
    1513import org.openstreetmap.josm.data.osm.RelationMember;
    16 import org.openstreetmap.josm.data.osm.Way;
    1714import org.openstreetmap.josm.gui.preferences.TaggingPresetPreference;
    1815import org.openstreetmap.josm.gui.tagging.TaggingPreset;
     
    114111        {
    115112            errors.add( new TestError(this, Severity.WARNING, tr("Relation type is unknown"),
    116             RELATION_UNKNOWN, n) );
     113                    RELATION_UNKNOWN, n) );
    117114
    118115        }
     
    144141            if(map.size() == 0)
    145142                errors.add( new TestError(this, Severity.ERROR, tr("Relation is empty"),
    146                 RELATION_EMPTY, n) );
     143                        RELATION_EMPTY, n) );
    147144            else
    148145            {
     
    163160                            String s = marktr("Role {0} missing");
    164161                            errors.add( new TestError(this, Severity.WARNING, tr("Role verification problem"),
    165                             tr(s, keyname), MessageFormat.format(s, keyname), ROLE_MISSING, n) );
     162                                    tr(s, keyname), MessageFormat.format(s, keyname), ROLE_MISSING, n) );
    166163                        }
    167164                        else if(vc > count)
     
    169166                            String s = marktr("Number of {0} roles too low ({1})");
    170167                            errors.add( new TestError(this, Severity.WARNING, tr("Role verification problem"),
    171                             tr(s, keyname, count), MessageFormat.format(s, keyname, count), LOW_COUNT, n) );
     168                                    tr(s, keyname, count), MessageFormat.format(s, keyname, count), LOW_COUNT, n) );
    172169                        }
    173170                        else
     
    175172                            String s = marktr("Number of {0} roles too high ({1})");
    176173                            errors.add( new TestError(this, Severity.WARNING, tr("Role verification problem"),
    177                             tr(s, keyname, count), MessageFormat.format(s, keyname, count), HIGH_COUNT, n) );
     174                                    tr(s, keyname, count), MessageFormat.format(s, keyname, count), HIGH_COUNT, n) );
    178175                        }
    179176                    }
    180177                    if(ri != null && ((!r.types.contains("way") && (r.types.contains("closedway") ? ri.openways > 0 : ri.ways > 0))
    181                     || (!r.types.contains("node") && ri.nodes > 0) || (!r.types.contains("relation") && ri.relations > 0)))
     178                            || (!r.types.contains("node") && ri.nodes > 0) || (!r.types.contains("relation") && ri.relations > 0)))
    182179                    {
    183180                        String s = marktr("Member for role {0} of wrong type");
    184181                        errors.add( new TestError(this, Severity.WARNING, tr("Role verification problem"),
    185                         tr(s, keyname), MessageFormat.format(s, keyname), WRONG_TYPE, n) );
     182                                tr(s, keyname), MessageFormat.format(s, keyname), WRONG_TYPE, n) );
    186183                    }
    187184                }
     
    194191                            String s = marktr("Role {0} unknown");
    195192                            errors.add( new TestError(this, Severity.WARNING, tr("Role verification problem"),
    196                             tr(s, key), MessageFormat.format(s, key), ROLE_UNKNOWN, n) );
     193                                    tr(s, key), MessageFormat.format(s, key), ROLE_UNKNOWN, n) );
    197194                        }
    198195                        else
     
    200197                            String s = marktr("Empty role found");
    201198                            errors.add( new TestError(this, Severity.WARNING, tr("Role verification problem"),
    202                             tr(s), s, ROLE_EMPTY, n) );
     199                                    tr(s), s, ROLE_EMPTY, n) );
    203200                        }
    204201                    }
Note: See TracChangeset for help on using the changeset viewer.