@Override public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( !( o instanceof NewResourceSuccessEvent ) ) { return false; } final NewResourceSuccessEvent that = (NewResourceSuccessEvent) o; return !( getPath() != null ? !getPath().equals( that.getPath() ) : that.getPath() != null ); }
@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 ); }
public void onNewResourceCreated(@Observes final NewResourceSuccessEvent newResourceSuccessEvent) { if (isLibraryPerspectiveOpen()) { assetDetailEvent.fire(new AssetDetailEvent(projectContext.getActiveWorkspaceProject() .orElseThrow(() -> new IllegalStateException("Cannot fire asset detail event without an active project.")), newResourceSuccessEvent.getPath())); placeManager.closePlace(LibraryPlaces.ADD_ASSET_SCREEN); } }
@Override public void execute() { busyIndicatorView.hideBusyIndicator(); presenter.complete(); notifySuccess(); newResourceSuccessEvent.fire( new NewResourceSuccessEvent( path ) ); placeManager.goTo( newPath ); }
final NewResourceSuccessEvent newResourceSuccessEvent = newResourceSuccessEventArgumentCaptor.getValue(); assertEquals("default://p0/src/main/resources/file.txt", newResourceSuccessEvent.getPath().toURI());
@Override protected RemoteCallback<Path> getSuccessCallback(final NewResourcePresenter presenter) { return (Path path) -> { 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 ); }; }
@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 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()); }; }