{
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
@Override
public void execute() {
Console.MODULES.getEventBus().fireEvent(
new LHSHighlightEvent(bootstrap.getInitialPlace())
);
bootstrap.setInitialPlace(null);
}
});
}
Console.MODULES.getHeader().highlight(NameTokens.HostMgmtPresenter);
String currentToken = placeManager.getCurrentPlaceRequest().getNameToken();
if(!currentToken.equals(getProxy().getNameToken()))
{
lastSubPlace = currentToken;
}
else if(lastSubPlace!=null)
{
placeManager.revealPlace(new PlaceRequest(lastSubPlace));
}
// first request, select default contents
if(!hasBeenRevealed &&
NameTokens.HostMgmtPresenter.equals(placeManager.getCurrentPlaceRequest().getNameToken()))
{
placeManager.revealPlace(
new PlaceRequest(NameTokens.ServerPresenter)
);
hasBeenRevealed = true;
// highlight LHS nav
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
@Override
public void execute() {
getEventBus().fireEvent(
new LHSHighlightEvent(null, Console.CONSTANTS.common_label_serverConfigs(), "hosts")
);
}
});
}