@Override
protected void installAdapters() {
super.installAdapters();
// make this action listen to mapframe change events
Main.addMapFrameListener(new MapFrameListener() {
@Override
public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
updateEnabledState();
}
});