Ticket #10773: 10773.patch

File 10773.patch, 1.8 KB (added by simon04, 9 years ago)
  • src/org/openstreetmap/josm/gui/MapStatus.java

    diff --git a/src/org/openstreetmap/josm/gui/MapStatus.java b/src/org/openstreetmap/josm/gui/MapStatus.java
    index e77b576..2984179 100644
    a b public class MapStatus extends JPanel implements Helpful, Destroyable, Preferenc  
    182182    }
    183183
    184184    private final ImageLabel latText = new ImageLabel("lat",
    185             tr("The geographic latitude at the mouse pointer."), 11, PROP_BACKGROUND_COLOR.get());
     185            null, 11, PROP_BACKGROUND_COLOR.get());
    186186    private final ImageLabel lonText = new ImageLabel("lon",
    187             tr("The geographic longitude at the mouse pointer."), 11, PROP_BACKGROUND_COLOR.get());
     187            null, 11, PROP_BACKGROUND_COLOR.get());
    188188    private final ImageLabel headingText = new ImageLabel("heading",
    189189            tr("The (compass) heading of the line segment being drawn."),
    190190            ONE_DECIMAL_PLACE.format(360).length() + 1, PROP_BACKGROUND_COLOR.get());
    public class MapStatus extends JPanel implements Helpful, Destroyable, Preferenc  
    869869                    LatLon p = mv.getLatLon(e.getX(), e.getY());
    870870                    latText.setText(p.latToString(mCord));
    871871                    lonText.setText(p.lonToString(mCord));
     872                    if (CoordinateFormat.EAST_NORTH.equals(mCord)) {
     873                        latText.setToolTipText(tr("The northing at the mouse pointer."));
     874                        lonText.setToolTipText(tr("The easting at the mouse pointer."));
     875                    } else {
     876                        latText.setToolTipText(tr("The geographic latitude at the mouse pointer."));
     877                        lonText.setToolTipText(tr("The geographic longitude at the mouse pointer."));
     878                    }
    872879                }
    873880            }
    874881        });