if (tgbController!=null) {
// Adaptor from view event produced by toolbar button to the legacy
// action id of the token game bar controller. Generate "listener" for these
// and forward to the token game bar controller
int tgbAction = createTgbActionFromViewEvent(event.getOrder());
TokenGameBarListener listener = new TokenGameBarListener(tgbAction,tgbController);
listener.actionPerformed(null);
}
else
LoggerManager.error(Constants.EDITOR_LOGGER,
"Tokengame controls used while tokengame was inactive");
break;