private ActionAcceleratorManager acceleratorManager;
private final boolean useRibbonMenu;
public UserInputListenerFactory(final ModeController modeController, boolean useRibbons) {
useRibbonMenu = useRibbons;
Controller controller = Controller.getCurrentController();
mapsMenuActionListener = new MapsMenuActionListener(controller);
menuBuilderList.put(MenuBuilder.class, new MenuBuilder(modeController, getAcceleratorManager()));
menuBuilderList.put(RibbonBuilder.class, new RibbonBuilder(modeController, getAcceleratorManager()));
controller.getMapViewManager().addMapSelectionListener(new IMapSelectionListener() {
public void afterMapChange(final MapModel oldMap, final MapModel newMap) {
if(modeController.equals(Controller.getCurrentModeController()))
getMenuBuilder(MenuBuilder.class).afterMapChange(newMap);
}