Fixed operation invocation call
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-statistical-widget@147240 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
54ab64fe23
commit
0c04c19dee
|
@ -34,12 +34,14 @@ public class TDSubmissionHandler implements ExternalExecutionEventHandler,
|
||||||
private EventBus eventBus;
|
private EventBus eventBus;
|
||||||
private TRId trId;
|
private TRId trId;
|
||||||
private DataMinerWidget dataMinerWidget;
|
private DataMinerWidget dataMinerWidget;
|
||||||
|
private boolean submitted;
|
||||||
|
|
||||||
public TDSubmissionHandler(DataMinerWidget dataMinerWidget, TRId trId,
|
public TDSubmissionHandler(DataMinerWidget dataMinerWidget, TRId trId,
|
||||||
EventBus eventBus) {
|
EventBus eventBus) {
|
||||||
this.dataMinerWidget = dataMinerWidget;
|
this.dataMinerWidget = dataMinerWidget;
|
||||||
this.trId = trId;
|
this.trId = trId;
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
|
submitted = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -50,13 +52,17 @@ public class TDSubmissionHandler implements ExternalExecutionEventHandler,
|
||||||
UtilsGXT3.alert("Error", "Invalid params null");
|
UtilsGXT3.alert("Error", "Invalid params null");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
dataMinerWidget.closeDataMinerWidget();
|
|
||||||
|
|
||||||
DataMinerOperationSession statisticalOperationSession = new DataMinerOperationSession(
|
if (!submitted) {
|
||||||
trId, event.getOp());
|
Log.info("ExternalExecutionEvent submitted");
|
||||||
|
submitted=true;
|
||||||
|
dataMinerWidget.closeDataMinerWidget();
|
||||||
|
|
||||||
callDataMinerOperation(statisticalOperationSession);
|
DataMinerOperationSession statisticalOperationSession = new DataMinerOperationSession(
|
||||||
|
trId, event.getOp());
|
||||||
|
|
||||||
|
callDataMinerOperation(statisticalOperationSession);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void callDataMinerOperation(
|
protected void callDataMinerOperation(
|
||||||
|
|
Loading…
Reference in New Issue