Changeset 3935 in josm


Ignore:
Timestamp:
2011-02-27T02:49:38+01:00 (11 years ago)
Author:
mjulius
Message:

fix #6023 - ChangeSet ID in Hex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java

    r3893 r3935  
    1212import java.util.Map.Entry;
    1313
    14 import javax.swing.event.ChangeEvent;
    1514import javax.swing.JPanel;
    1615import javax.swing.JScrollPane;
     
    1817import javax.swing.JTextArea;
    1918import javax.swing.SingleSelectionModel;
     19import javax.swing.event.ChangeEvent;
    2020import javax.swing.event.ChangeListener;
    2121
    2222import org.openstreetmap.josm.Main;
    23 import org.openstreetmap.josm.gui.ExtendedDialog;
    2423import org.openstreetmap.josm.data.osm.DataSet;
    25 import org.openstreetmap.josm.tools.SubclassFilteredCollection;
    2624import org.openstreetmap.josm.data.osm.Node;
    2725import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    3129import org.openstreetmap.josm.data.osm.Way;
    3230import org.openstreetmap.josm.gui.DefaultNameFormatter;
     31import org.openstreetmap.josm.gui.ExtendedDialog;
    3332import org.openstreetmap.josm.gui.NavigatableComponent;
    3433import org.openstreetmap.josm.gui.mappaint.Cascade;
     
    4443import org.openstreetmap.josm.tools.DateUtils;
    4544import org.openstreetmap.josm.tools.GBC;
     45import org.openstreetmap.josm.tools.SubclassFilteredCollection;
    4646
    4747/**
     
    172172
    173173    protected void addCommon(StringBuilder s, OsmPrimitive o) {
    174         s.append(String.format("Data set: %X; User: [%s]; ChangeSet id: %H; Timestamp: %s, Version: %d",
    175                     o.getDataSet().hashCode(),
    176                     userString(o.getUser()),
    177                     o.getChangesetId(),
    178                     DateUtils.fromDate(o.getTimestamp()),
    179                     o.getVersion()));
     174        s.append(String.format("Data set: %X; User: [%s]; ChangeSet id: %d; Timestamp: %s, Version: %d",
     175                o.getDataSet().hashCode(),
     176                userString(o.getUser()),
     177                o.getChangesetId(),
     178                DateUtils.fromDate(o.getTimestamp()),
     179                o.getVersion()));
    180180
    181181        /* selected state is left out: not interesting as it is always selected */
Note: See TracChangeset for help on using the changeset viewer.