Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@94949 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-04-17 10:02:14 +00:00
parent 2c72649063
commit bcb1f9e1e2
1 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package org.gcube.portlets.user.td.expressionwidget.client.progress;
import org.gcube.portlets.user.td.expressionwidget.client.ColumnFilterDialog; import org.gcube.portlets.user.td.expressionwidget.client.ColumnFilterDialog;
import org.gcube.portlets.user.td.widgetcommonevent.client.event.ChangeTableRequestEvent; import org.gcube.portlets.user.td.widgetcommonevent.client.event.ChangeTableRequestEvent;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableRequestType; import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableRequestType;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableWhy;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId; import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.allen_sauer.gwt.log.client.Log; import com.allen_sauer.gwt.log.client.Log;
@ -38,6 +39,7 @@ public class ColumnFilterProgressDialog extends Window implements ColumnFilterPr
protected TextButton ok; protected TextButton ok;
protected TRId trId; protected TRId trId;
protected ColumnFilterDialog dialog; protected ColumnFilterDialog dialog;
private ChangeTableWhy why;
public ColumnFilterProgressDialog(ColumnFilterDialog dialog,EventBus eventBus) { public ColumnFilterProgressDialog(ColumnFilterDialog dialog,EventBus eventBus) {
this.dialog=dialog; this.dialog=dialog;
@ -102,6 +104,7 @@ public class ColumnFilterProgressDialog extends Window implements ColumnFilterPr
public void operationComplete(TRId trId) { public void operationComplete(TRId trId) {
Log.debug("Operation Complete return: "+trId.toString()); Log.debug("Operation Complete return: "+trId.toString());
this.trId=trId; this.trId=trId;
why=ChangeTableWhy.TABLEUPDATED;
updateInvocation(); updateInvocation();
} }
@ -120,7 +123,7 @@ public class ColumnFilterProgressDialog extends Window implements ColumnFilterPr
public void updateInvocation(){ public void updateInvocation(){
if(trId!=null){ if(trId!=null){
ChangeTableRequestEvent changeTableRequestEvent= ChangeTableRequestEvent changeTableRequestEvent=
new ChangeTableRequestEvent(ChangeTableRequestType.COLUMNFILTER, trId); new ChangeTableRequestEvent(ChangeTableRequestType.COLUMNFILTER, trId,why);
eventBus.fireEvent(changeTableRequestEvent); eventBus.fireEvent(changeTableRequestEvent);
} }
dialog.hide(); dialog.hide();
@ -132,5 +135,6 @@ public class ColumnFilterProgressDialog extends Window implements ColumnFilterPr
Log.debug("Operation Stopped: ["+trId.toString()+", "+reason+", "+details+"]"); Log.debug("Operation Stopped: ["+trId.toString()+", "+reason+", "+details+"]");
ok.setVisible(true); ok.setVisible(true);
this.trId=trId; this.trId=trId;
why=ChangeTableWhy.TABLECURATION;
} }
} }