Ignore:
Timestamp:
2009-06-07T23:22:54+02:00 (15 years ago)
Author:
Gubaer
Message:

added merge support for coordinate conflicts
added merge support for conflicts due to different deleted states

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/nodes/NodeListTableCellRenderer.java

    r1650 r1654  
    8181    }
    8282
    83 
     83    /**
     84     * build the tool tip text for an {@see OsmPrimitive}. It consist of the formatted
     85     * key/value pairs for this primitive.
     86     *
     87     * @param primitive
     88     * @return the tool tip text
     89     */
    8490    public String buildToolTipText(OsmPrimitive primitive) {
    8591        StringBuilder sb = new StringBuilder();
     92
    8693        sb.append("<html>");
     94        // show the id
     95        //
    8796        sb.append("<strong>id</strong>=")
    8897        .append(primitive.id)
    8998        .append("<br>");
     99
     100        // show the key/value-pairs, sorted by key
     101        //
    90102        ArrayList<String> keyList = new ArrayList<String>(primitive.keySet());
    91103        Collections.sort(keyList);
     
    99111            .append("</strong>")
    100112            .append("=");
     113            // make sure long values are split into several rows. Otherwise
     114            // the tool tip window can become to wide
     115            //
    101116            String value = primitive.get(key);
    102117            while(value.length() != 0) {
     
    121136        setForeground(Color.BLACK);
    122137    }
    123 
    124 
    125138
    126139    /**
Note: See TracChangeset for help on using the changeset viewer.