@Override
public void onOptionEvent(OptionEvent event) {
final String optionText = event.getOptionText();
if(event.getOptionEventType() == OptionEvent.EventType.SELECTED) {
final AdminContext ac = SmbizAdmin.getAdminContextCmd().getAdminContext();
final IViewInitializer vi =
OpsManager.resolveViewInitializer(optionText, ac.getUser(), ac.getAccount());
if(vi == null) {
Window.alert("The view: '" + optionText + "' is currently not implemented.");
return;
}
ViewManager.get().dispatch(new ShowViewRequest(vi));