Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-extractcodelist-widget@96343 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-05-30 16:11:30 +00:00
parent a545927b4c
commit e981a7495f
4 changed files with 11 additions and 10 deletions

View File

@ -131,8 +131,9 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard implement
public void operationUpdate(float elaborated) {
}
public void operationComplete() {
@Override
public void operationComplete(final TRId trId) {
Command sayComplete = new Command() {
@ -140,8 +141,7 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard implement
try {
getWizardWindow().close(false);
Log.info("fire Complete: tableId");
getWizardWindow().fireCompleted(null);
getWizardWindow().fireCompleted(trId);
} catch (Exception e) {
Log.error("fire Complete :" + e.getLocalizedMessage());

View File

@ -35,8 +35,9 @@ public class ExtractCodelistProgressBarUpdater implements ExtractCodelistProgres
/**
* {@inheritDoc}
*/
public void operationComplete() {
Log.info("Completed");
@Override
public void operationComplete(TRId trId) {
Log.info("Completed "+trId.toString());
progressBar.updateProgress(1, "Completed.");
}

View File

@ -37,7 +37,7 @@ public interface ExtractCodelistProgressListener {
/**
* Called when the operation is complete.
*/
public void operationComplete();
public void operationComplete(TRId trId);
/**
* Called when the operation is failed.

View File

@ -77,7 +77,7 @@ public class ExtractCodelistProgressUpdater extends Timer {
cancel();
Log.info("Finish:"
+ result.toString());
fireOperationComplete();
fireOperationComplete(result.getTrId());
break;
default:
Log.info("Unknow State");
@ -152,9 +152,9 @@ public class ExtractCodelistProgressUpdater extends Timer {
listener.operationValidate(elaborated);
}
protected void fireOperationComplete() {
protected void fireOperationComplete(TRId trId) {
for (ExtractCodelistProgressListener listener : listeners)
listener.operationComplete();
listener.operationComplete(trId);
}
protected void fireOperationFailed(Throwable caught, String failure,