Package org.openstreetmap.josm.gui
Class MainMenu.EditLayerMenuEnabler
- java.lang.Object
-
- org.openstreetmap.josm.gui.MainMenu.EditLayerMenuEnabler
-
- All Implemented Interfaces:
MainLayerManager.ActiveLayerChangeListener
- Enclosing class:
- MainMenu
static class MainMenu.EditLayerMenuEnabler extends java.lang.Object implements MainLayerManager.ActiveLayerChangeListener
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<javax.swing.JMenu>
menus
-
Constructor Summary
Constructors Constructor Description EditLayerMenuEnabler(java.util.Collection<javax.swing.JMenu> menus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
Called whenever the active or edit layer changed.
-
-
-
Field Detail
-
menus
private final java.util.Collection<javax.swing.JMenu> menus
-
-
Constructor Detail
-
EditLayerMenuEnabler
EditLayerMenuEnabler(java.util.Collection<javax.swing.JMenu> menus)
-
-
Method Detail
-
activeOrEditLayerChanged
public void activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
Description copied from interface:MainLayerManager.ActiveLayerChangeListener
Called whenever the active or edit layer changed.You can be sure that this layer is still contained in this set.
Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread.
- Specified by:
activeOrEditLayerChanged
in interfaceMainLayerManager.ActiveLayerChangeListener
- Parameters:
e
- The change event.
-
-