Ignore:
Timestamp:
15.06.2009 20:22:46 (3 years ago)
Author:
Gubaer
Message:

fixed: bug in OsmApi.getOsmApi()
cleanup: exception handling in interfacing with OSM API
new: new action for updating individual elements with the their current state on the server (including new menu item in the file menu)
new: improved user feedback in case of conflicts
new: handles 410 Gone conflicts when uploading a changeset
new: undoable command for "purging" a primitive from the current dataset (necessary if the primitive is already deleted on the server and the user wants to remove it from its local dataset)
new: undoable command for "undeleting" an already deleted primitive on the server (kind of "cloning")
new: after a full upload, checks whether there are primitives in the local dataset which might be deleted on the server.
new: data structures for history data
new: history download support in io package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/VersionConflictResolveCommand.java

    r1654 r1670  
    1313import org.openstreetmap.josm.data.osm.Node; 
    1414import org.openstreetmap.josm.data.osm.OsmPrimitive; 
     15import org.openstreetmap.josm.data.osm.OsmPrimitiveType; 
    1516import org.openstreetmap.josm.data.osm.Relation; 
    1617import org.openstreetmap.josm.data.osm.Way; 
     
    3738    } 
    3839 
    39     //FIXME copied from TagConflictResolveCommand -> refactor 
    40     /** 
    41      * replies a (localized) display name for the type of an OSM primitive 
    42      *  
    43      * @param primitive the primitive 
    44      * @return a localized display name 
    45      */ 
    46     protected String getPrimitiveTypeAsString(OsmPrimitive primitive) { 
    47         if (primitive instanceof Node) return tr("node"); 
    48         if (primitive instanceof Way) return tr("way"); 
    49         if (primitive instanceof Relation) return tr("relation"); 
    50         return ""; 
    51     } 
    52  
    5340    @Override 
    5441    public MutableTreeNode description() { 
    5542        return new DefaultMutableTreeNode( 
    5643                new JLabel( 
    57                         tr("Resolve version conflicts for {0} {1}",getPrimitiveTypeAsString(my), my.id), 
     44                        tr("Resolve version conflicts for {0} {1}",OsmPrimitiveType.from(my).getLocalizedDisplayNameSingular(), my.id), 
    5845                        ImageProvider.get("data", "object"), 
    5946                        JLabel.HORIZONTAL 
Note: See TracChangeset for help on using the changeset viewer.