Changeset 7483 in josm for trunk/src/org/openstreetmap/josm/gui/MapStatus.java
- Timestamp:
- 2014-09-02T00:23:04+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapStatus.java
r7135 r7483 51 51 52 52 import org.openstreetmap.josm.Main; 53 import org.openstreetmap.josm.data.SystemOfMeasurement;54 53 import org.openstreetmap.josm.data.Preferences.PreferenceChangeEvent; 55 54 import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener; 55 import org.openstreetmap.josm.data.SystemOfMeasurement; 56 56 import org.openstreetmap.josm.data.coor.CoordinateFormat; 57 57 import org.openstreetmap.josm.data.coor.LatLon; … … 299 299 // produces several events as well, which would make this 300 300 // variable true. Of course we only want the popup to show 301 // if the middle mouse button has been pressed in the first 302 // place 301 // if the middle mouse button has been pressed in the first place 303 302 boolean mouseNotMoved = oldMousePos != null 304 303 && oldMousePos.equals(ms.mousePos); … … 722 721 723 722 private final JMenuItem jumpButton = add(Main.main.menu.jumpToAct); 724 723 725 724 private final Collection<JCheckBoxMenuItem> somItems = new ArrayList<>(); 726 725 727 726 private final JSeparator separator = new JSeparator(); 728 727 … … 782 781 this.mv = mapFrame.mapView; 783 782 this.collector = new Collector(mapFrame); 784 783 785 784 // Context menu of status bar 786 785 setComponentPopupMenu(new MapStatusPopupMenu()); … … 817 816 818 817 setLayout(new GridBagLayout()); 819 setBorder(BorderFactory.createEmptyBorder( 5,5,5,5));818 setBorder(BorderFactory.createEmptyBorder(1,2,1,2)); 820 819 821 820 latText.setInheritsPopupMenu(true); … … 834 833 distText.addMouseListener(new MouseAdapter() { 835 834 private final List<String> soms = new ArrayList<>(new TreeSet<>(SystemOfMeasurement.ALL_SYSTEMS.keySet())); 836 835 837 836 @Override 838 837 public void mouseClicked(MouseEvent e) { … … 882 881 thread.start(); 883 882 } 884 883 885 884 /** 886 885 * Updates the system of measurement and displays a notification.
Note:
See TracChangeset
for help on using the changeset viewer.