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

fix linked hints in relation editor, added tooltip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.