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:
parent
a545927b4c
commit
e981a7495f
|
@ -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());
|
||||||
|
|
|
@ -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.");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue