Changeset 10851 in josm
- Timestamp:
- 2016-08-19T01:27:44+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r10824 r10851 33 33 import javax.swing.JPopupMenu; 34 34 import javax.swing.JSplitPane; 35 import javax.swing.JToggleButton; 35 36 import javax.swing.JToolBar; 36 37 import javax.swing.KeyStroke; … … 381 382 } 382 383 384 /** 385 * Call this to remove existing toggle dialog from the left button-list 386 * @param dlg The toggle dialog. It must be already in the list. 387 * @since 10851 388 */ 389 public void removeToggleDialog(final ToggleDialog dlg) { 390 final JToggleButton button = dlg.getButton(); 391 if (button != null) { 392 allDialogButtons.remove(button); 393 toolBarToggle.remove(button); 394 } 395 dialogsPanel.remove(dlg); 396 allDialogs.remove(dlg); 397 } 398 383 399 public void addMapMode(IconToggleButton b) { 384 400 if (b.getAction() instanceof MapMode) {
Note:
See TracChangeset
for help on using the changeset viewer.