public void onSuccess(final ContextCreation context) {
// unlock(); // remove?
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
@Override
public void execute() {
final PlaceRequest placeRequest = context.getRequest();
DefaultPlaceManager.super.doRevealPlace(placeRequest, updateBrowserUrl);
// we only fire LHS highlight events for real sections not top level categories
if(updateBrowserUrl) {
StringBuffer nameToken = new StringBuffer(placeRequest.getNameToken());
if (!placeRequest.getParameterNames().isEmpty()) {
nameToken.append(";");
for (String param : placeRequest.getParameterNames()) {
nameToken.append(param).append("=").append(placeRequest.getParameter(param, ""));
}
}
eventBus.fireEvent(new LHSHighlightEvent(nameToken.toString()));
}
}