public void assetCopyEvent( String uri ) {
vfsServices.call( new RemoteCallback<Path>() {
@Override
public void callback( final Path mypath ) {
final CopyPopup popup = new CopyPopup( mypath,
fileNameValidator,
new CommandWithFileNameAndCommitMessage() {
@Override
public void execute( final FileNameAndCommitMessage details ) {
busyIndicatorView.showBusyIndicator( CommonConstants.INSTANCE.Copying() );
copyService.call( getCopySuccessCallback(),
new HasBusyIndicatorDefaultErrorCallback( busyIndicatorView ) ).copy( path,
details.getNewFileName(),
details.getCommitMessage() );
}
} );
popup.show();
}
} ).get( URIUtil.encode( uri ) );
}