public class HistoryPresenter {
private EventBus bus = CommonGlobals.getInstance().getEventBus();
public HistoryPresenter() {
bus.addHandler(HistoryStoreEvent.TYPE, new HistoryStoreHandler() {
public void onEvent(HistoryStoreEvent event) {
if (event.getTokens() != null && !event.getTokens().isEmpty()) {
for (String token : event.getTokens()) {
History.newItem(token);
}