uploadContainer.add( uploadWidget );
uploadContainer.add( uploadButton );
uploadWell.add( uploadContainer );
ts.addRow( uploadWell );
uploadButton.addClickHandler( new ClickHandler() {
@Override
public void onClick( final ClickEvent event ) {
BusyPopup.showMessage( ScoreCardXLSEditorConstants.INSTANCE.Uploading() );
if ( concurrentUpdateSessionInfo != null ) {
newConcurrentUpdate( concurrentUpdateSessionInfo.getPath(),
concurrentUpdateSessionInfo.getIdentity(),
new org.uberfire.mvp.Command() {
@Override
public void execute() {
submit(path);
}
},
new org.uberfire.mvp.Command() {
@Override
public void execute() {
//cancel?
}
},
new org.uberfire.mvp.Command() {
@Override
public void execute() {
presenter.reload();
}
}
).show();
} else {
submit(path);
}
}
} );
//Download widgets
final Well downloadWell = new Well();
final HorizontalPanel downloadContainer = new HorizontalPanel();
downloadContainer.add( new Label( ScoreCardXLSEditorConstants.INSTANCE.DownloadCurrentVersion() + ":" ) );
downloadContainer.add( downloadButton );
downloadWell.add( downloadContainer );
ts.addRow( downloadWell );
downloadButton.addClickHandler( new ClickHandler() {
@Override
public void onClick( final ClickEvent event ) {
Window.open( URLHelper.getDownloadUrl( path ),
"downloading",
"resizable=no,scrollbars=yes,status=no" );