static class MainMenu.EditLayerMenuEnabler extends java.lang.Object implements MainLayerManager.ActiveLayerChangeListener
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<javax.swing.JMenu> |
menus |
Constructor and Description |
---|
EditLayerMenuEnabler(java.util.Collection<javax.swing.JMenu> menus) |
Modifier and Type | Method and Description |
---|---|
void |
activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
Called whenever the active or edit layer changed.
|
private final java.util.Collection<javax.swing.JMenu> menus
EditLayerMenuEnabler(java.util.Collection<javax.swing.JMenu> menus)
public void activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
MainLayerManager.ActiveLayerChangeListener
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.
activeOrEditLayerChanged
in interface MainLayerManager.ActiveLayerChangeListener
e
- The change event.