@Override public void back() { History.back(); }
public void goBack() { History.back(); }
@Override public void back() { History.back(); }
@Override public void navigateBack() { History.back(); }
@Override public void goBack(Object returnValue) { History.back(); }
public void back() { History.back(); }
public void goBack() { History.back(); }
public void back() { History.back(); }
@Override public void go(int number) { if (number > 0) { History.forward(); } else { History.back(); } }
@Override public void onClick(ClickEvent event) { popupPanel.hide(); History.back(); isShowing = false; } });
@Override public void gotoPlace(Place place) { if (place == null) { History.back(); return; } placeController.goTo(place); }
@Override public void go(int number) { if (number > 0) { History.forward(); } else { History.back(); } }
@Override public void onFailure( final Throwable caught ) { super.onFailure( caught ); log.debug( "Failed to claim instance" ); History.back(); }
Window.alert("Invalid URL, cannot display resource."); log.severe("Expecting exactly 2 parts after split, found: " + parts.length + ". Parts: " + parts); History.back(); return; Window.alert("Invalid URL, cannot display resource."); log.severe("Expecting first part to be " + URI_KEY + ", found: " + parts[0]); History.back(); return; Window.alert("Invalid URL, cannot display resource."); log.severe("Unexpected page token: "+pageMode); History.back(); return;
@Override public void onFailure(final Throwable caught) { if ( context.isInstitution() ) { super.onFailure( caught ); History.back(); } else { // check to see if failure is because node is down if central ClientSearchProxy.getInstance().getNodeStatusForInstance(instanceID, new RootAsyncCallback<String>() { @Override public void onSuccess(String result) { if ( result.equals( STATUS_RUNNING ) ) { // node is fine, propagate failure up super.onFailure( caught ); History.back(); } else { displayNodeErrorMsg(); } } /** * Something is wrong with the node that this instance belongs to * Generate a helpful message to the user. */ private void displayNodeErrorMsg() { final NodeStatusPanel nodeStatusPanel = new NodeStatusPanel(); nodeStatusPanel.showPopup(); } }); } }
private void cancel() { if ( formType == EditFormType.New ) { if ( ApplicationState.getInstance().getMode() == Mode.duplicate ) { History.back(); } else if ( ResourceProvider.isResourceProviderType( eiInstance.getInstanceType() ) ) { ApplicationState.getInstance().updateApplicationState( Mode.workbench, EIEntity.NULL_ENTITY, EIEntity.NULL_ENTITY, EIEntity.NULL_ENTITY ); } else { final EIEntity typeEntity = eiInstance.getRootSuperType().getEntity(); ApplicationState.getInstance().updateApplicationState( Mode.list, EIEntity.NULL_ENTITY, typeEntity, ApplicationState.getInstance().getResourceProviderEntity() ); } } else { ClientSweetProxy.getInstance().getInstance( eiInstance.getInstanceURI(), new RootAsyncCallback<EIInstance>() { @Override public void onSuccess(final EIInstance fetched) { formRedisplayCallbacks.drawAfterCancel( fetched ); } @Override public void onFailure(final Throwable caught) { formRedisplayCallbacks.drawAfterCancel( eiInstance ); } } ); } }