Changeset 208 in josm for src/org/openstreetmap/josm/gui/MapFrame.java
- Timestamp:
- 2007-04-04T11:31:50+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/gui/MapFrame.java
r205 r208 33 33 import org.openstreetmap.josm.gui.dialogs.SelectionListDialog; 34 34 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; 35 import org.openstreetmap.josm.tools.Destroyable; 35 36 36 37 /** … … 40 41 * @author imi 41 42 */ 42 public class MapFrame extends JPanel {43 public class MapFrame extends JPanel implements Destroyable { 43 44 44 45 /** … … 135 136 } 136 137 138 /** 139 * Called as some kind of destructor when the last layer has been removed. 140 * Delegates the call to all Destroyables within this component (e.g. MapModes) 141 */ 142 public void destroy() { 143 for (int i = 0; i < toolBarActions.getComponentCount(); ++i) 144 if (toolBarActions.getComponent(i) instanceof Destroyable) 145 ((Destroyable)toolBarActions).destroy(); 146 } 147 137 148 public Action getDefaultButtonAction() { 138 149 return ((AbstractButton)toolBarActions.getComponent(0)).getAction();
Note:
See TracChangeset
for help on using the changeset viewer.