Changeset 8398 in josm for trunk/src/org
- Timestamp:
- 2015-05-19T22:19:22+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/bbox/SizeButton.java
r8308 r8398 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.bbox; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import java.awt.Dimension; … … 27 29 28 30 public SizeButton(SlippyMapBBoxChooser slippyMapBBoxChooser){ 29 super();30 31 this.slippyMapBBoxChooser = slippyMapBBoxChooser; 31 32 enlargeImage = ImageProvider.get("view-fullscreen"); … … 33 34 setPreferredSize(new Dimension(enlargeImage.getIconWidth(), enlargeImage.getIconHeight())); 34 35 addMouseListener(mouseListener); 36 setToolTipText(tr("Enlarge")); 35 37 } 36 38 … … 44 46 } 45 47 }; 46 47 48 48 49 @Override … … 59 60 public void toggle() { 60 61 isEnlarged = !isEnlarged; 62 setToolTipText(isEnlarged ? tr("Shrink") : tr("Enlarge")); 61 63 } 62 64
Note:
See TracChangeset
for help on using the changeset viewer.