@Override public void onFailure(Throwable caught) { presenter.getProxy().manualRevealFailed(); if (callback != null) { callback.onFailure(caught); } }
@Override public void onSuccess(T result) { if (callback != null) { callback.onSuccess(result); } presenter.getProxy().manualReveal(presenter); } }
@Override public <T extends PresenterWidget<?>> void setInSlot(IsSlot<T> slot, T content) { super.setInSlot(slot, content); // Update the view with regard to current tab's history token // in order to retain "active" tab after refreshing all tabs if (slot == tabContentSlot) { try { Presenter<?, ?> presenter = (Presenter<?, ?>) content; TabContentProxy<?> proxy = (TabContentProxy<?>) presenter.getProxy(); // Following is needed to address a bug in GWTP legacy slot handling. // https://groups.google.com/forum/#!topic/gwt-platform/eDpwOubUCmE getView().setActiveTab(proxy.getTab()); // Following is needed to inform the TabPanel about the history token. getView().setActiveTabHistoryToken(proxy.getTargetHistoryToken()); } catch (Exception e) { logger.log(Level.SEVERE, "Error while updating tab view", e); //$NON-NLS-1$ } } }