@Override protected RemoteCallback<Path> getSuccessCallback(final NewResourcePresenter presenter) { return (Path path) -> { presenter.complete(); notifySuccess(); newResourceSuccessEvent.fire(new NewResourceSuccessEvent(path)); placeManager.goTo(path); }; }
@Override public void execute() { busyIndicatorView.hideBusyIndicator(); presenter.complete(); notifySuccess(); newResourceSuccessEvent.fire(new NewResourceSuccessEvent(path)); placeManager.goTo(newPath); } },
@Override public void onSuccess(final Path path) { indicatorView.hideBusyIndicator(); presenter.complete(); notifySuccess(); newResourceSuccessEvent.fire(new NewResourceSuccessEvent(path)); placeManager.goTo(path); }
@Override public void execute() { busyIndicatorView.hideBusyIndicator(); presenter.complete(); notifySuccess(); newResourceSuccessEvent.fire( new NewResourceSuccessEvent( path ) ); placeManager.goTo( newPath ); }
@Override public void execute() { busyIndicatorView.hideBusyIndicator(); presenter.complete(); notifySuccess(); newResourceSuccessEvent.fire( new NewResourceSuccessEvent( path ) ); placeManager.goTo( newPath ); }
@Override protected RemoteCallback<Path> getSuccessCallback(final NewResourcePresenter presenter) { return (Path path) -> { presenter.complete(); notifySuccess(); newResourceSuccessEvent.fire(new NewResourceSuccessEvent(path)); placeManager.goTo(path); }; }
@Override public void callback(final Path path) { BusyPopup.close(); presenter.complete(); notifySuccess(); newResourceSuccessEvent.fire(new NewResourceSuccessEvent(path)); PlaceRequest place = createPathPlaceRequest(path); placeManager.goTo(place); } }, new ErrorCallback<Message>() {
@Override protected RemoteCallback<Path> getSuccessCallback( final NewResourcePresenter presenter ) { return ( path )-> { busyIndicatorView.hideBusyIndicator(); presenter.complete(); notifySuccess(); newResourceSuccessEvent.fire( new NewResourceSuccessEvent( path ) ); placeManager.goTo( path ); }; }
@Override public void callback(final Path path) { busyIndicatorView.hideBusyIndicator(); presenter.complete(); notifySuccess(); newResourceSuccessEvent.fire(new NewResourceSuccessEvent(path)); placeManager.goTo(path); } };
@Override protected RemoteCallback<Path> getSuccessCallback( final NewResourcePresenter presenter ) { return ( path )-> { busyIndicatorView.hideBusyIndicator(); presenter.complete(); notifySuccess(); newResourceSuccessEvent.fire( new NewResourceSuccessEvent( path ) ); placeManager.goTo( path ); }; }
private RemoteCallback<Path> getResolvePathSuccessCallback(final String targetFileName, final NewResourcePresenter presenter) { return path -> { final Path newPath = PathFactory.newPathBasedOn(targetFileName, encode(path.toURI() + "/" + targetFileName), path); options.setFolderPath(path); options.setFileName(targetFileName); options.upload(() -> { busyIndicatorView.hideBusyIndicator(); presenter.complete(); notifySuccess(); newResourceSuccessEvent.fire(new NewResourceSuccessEvent(newPath)); placeManager.goTo(newPath); }, () -> busyIndicatorView.hideBusyIndicator()); }; }