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

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

View File

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

View File

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

View File

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