Ignore:
Timestamp:
2012-07-20T18:14:54+02:00 (13 years ago)
Author:
akks
Message:

See #5984: Automatic pasting of IDs or URL into Download Object fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/OsmIdTextField.java

    r5266 r5354  
    1414import org.openstreetmap.josm.data.osm.PrimitiveId;
    1515import org.openstreetmap.josm.data.osm.SimplePrimitiveId;
     16import org.openstreetmap.josm.tools.Utils;
    1617
    1718/**
     
    4344
    4445    public void performValidation() {
     46        validator.validate();
     47    }
     48
     49    public void clearTextIfInvalid() {
     50        if (!validator.isValid())
     51            setText("");
    4552        validator.validate();
    4653    }
Note: See TracChangeset for help on using the changeset viewer.