Changeset 4669 in josm for trunk/src/org/openstreetmap/josm/gui/MapFrame.java
- Timestamp:
- 2011-12-20T21:33:34+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r4609 r4669 33 33 import javax.swing.JToolBar; 34 34 import javax.swing.KeyStroke; 35 import javax.swing.SwingUtilities; 35 36 import javax.swing.border.Border; 36 37 import javax.swing.plaf.basic.BasicSplitPaneDivider; … … 408 409 })); 409 410 } 410 411 411 412 class ListAllButtonsAction extends AbstractAction { 412 413 … … 454 455 toolBarToggle.repaint(); 455 456 for (IconToggleButton b : allMapModeButtons) { 456 b.applyButtonHiddenPreferences();457 b.applyButtonHiddenPreferences(); 457 458 } 458 459 toolBarActions.repaint(); 459 460 } 460 461 461 462 /** 462 463 * Replies the instance of a toggle dialog of type <code>type</code> managed by this … … 535 536 // invalidate repaint cache 536 537 Main.map.mapView.preferenceChanged(null); 537 } 538 539 // After all listeners notice new layer, some buttons will be disabled/enabled 540 // and possibly need to be hidden/shown. 541 SwingUtilities.invokeLater(new Runnable() { 542 public void run() { 543 validateToolBarsVisibility(); 544 } 545 }); 546 } 547 538 548 539 549 private MapMode getLastMapMode(Layer newLayer) {
Note:
See TracChangeset
for help on using the changeset viewer.