Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@94984 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
bfc947448f
commit
ea37ddcac2
|
@ -18,7 +18,7 @@ public class HistoryDiscard {
|
|||
this.eventBus = eventBus;
|
||||
}
|
||||
|
||||
public void discard(){
|
||||
public void discard() {
|
||||
retrieveCurrentTR();
|
||||
}
|
||||
|
||||
|
@ -42,27 +42,30 @@ public class HistoryDiscard {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
protected void callDiscard(){
|
||||
TDGWTServiceAsync.INSTANCE.discard(trId, new AsyncCallback<RollBackSession>() {
|
||||
protected void callDiscard() {
|
||||
TDGWTServiceAsync.INSTANCE.discard(trId,
|
||||
new AsyncCallback<RollBackSession>() {
|
||||
|
||||
public void onFailure(Throwable caught) {
|
||||
Log.error("Error in discard: "
|
||||
+ caught.getLocalizedMessage());
|
||||
UtilsGXT3.alert("Error in discard",
|
||||
"Error in discard");
|
||||
UtilsGXT3.alert("Error in discard", "Error in discard");
|
||||
|
||||
}
|
||||
|
||||
public void onSuccess(RollBackSession result) {
|
||||
Log.debug("Discard started "+result);
|
||||
Log.debug("Discard Session " + result);
|
||||
if (result == null) {
|
||||
Log.info("Attention: undo not applicable");
|
||||
UtilsGXT3.info("Attention", "Undo not applicable");
|
||||
} else {
|
||||
callRollBackProgressDialog(result);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
protected void callRollBackProgressDialog(RollBackSession rollBackSession) {
|
||||
RollBackProgressDialog dialog = new RollBackProgressDialog(
|
||||
rollBackSession, eventBus);
|
||||
|
|
Loading…
Reference in New Issue