Changeset 2298 in josm for trunk/src


Ignore:
Timestamp:
2009-10-18T15:14:15+02:00 (13 years ago)
Author:
stoecker
Message:

fix linked hints in relation editor, added tooltip

Location:
trunk/src/org/openstreetmap/josm/gui/dialogs/relation
Files:
3 edited

Legend:

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

    r1822 r2298  
    1515        renderForeground(isSelected);
    1616        setText(value.toString());
     17        setToolTipText(((WayConnectionType)value).getToolTip());
    1718        renderBackground(getModel(table), null, isSelected);
    1819        return this;
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableModel.java

    r2273 r2298  
    548548    private static Node getUnusedNode(RelationMember element, RelationMember linked_element)
    549549    {
    550         Node    result = null;
     550        Node result = null;
    551551
    552552        if (element.isWay()) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/WayConnectionType.java

    r1790 r2298  
    22package org.openstreetmap.josm.gui.dialogs.relation;
    33
     4import static org.openstreetmap.josm.tools.I18n.tr;
     5
    46public enum WayConnectionType {
    57
    6     none (""),
    7     head_to_head("-><-"),
    8     tail_to_tail("->->"),
    9     head_to_tail("<-<-"),
    10     tail_to_head ("<-->");
     8    none("", tr("Not connected")),
     9    head_to_head("-><-", tr("Last points of ways are connected")),
     10    tail_to_tail("<-->", tr("First points of ways are connected")),
     11    head_to_tail("->->", tr("First point of second way connects to last point of first way")),
     12    tail_to_head("<-<-", tr("First point of first way connects to last point of second way"));
    1113
    1214    private String textSymbol;
     15    private String toolTip;
    1316
    14     WayConnectionType(String textSymbol) {
     17    WayConnectionType(String textSymbol, String toolTip) {
    1518        this.textSymbol = textSymbol;
     19        this.toolTip = toolTip;
    1620    }
    1721
     
    2024        return textSymbol;
    2125    }
     26
     27    public String getToolTip() {
     28        return toolTip;
     29    }
    2230}
Note: See TracChangeset for help on using the changeset viewer.