Minor updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-open-widget@86652 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f9db899dcc
commit
f5669b5be1
|
@ -1,6 +1,6 @@
|
||||||
package org.gcube.portlets.user.td.openwidget.client;
|
package org.gcube.portlets.user.td.openwidget.client;
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.openwidget.client.general.WizardWindow;
|
import org.gcube.portlets.user.td.wizardwidget.client.WizardWindow;
|
||||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.open.TDOpenSession;
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.open.TDOpenSession;
|
||||||
|
|
||||||
import com.allen_sauer.gwt.log.client.Log;
|
import com.allen_sauer.gwt.log.client.Log;
|
||||||
|
|
|
@ -6,7 +6,7 @@ package org.gcube.portlets.user.td.openwidget.client;
|
||||||
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
||||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.open.TDOpenSession;
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.open.TDOpenSession;
|
||||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
|
||||||
import org.gcube.portlets.user.td.openwidget.client.general.WizardCard;
|
import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
||||||
|
|
||||||
import com.allen_sauer.gwt.log.client.Log;
|
import com.allen_sauer.gwt.log.client.Log;
|
||||||
import com.google.gwt.event.logical.shared.SelectionEvent;
|
import com.google.gwt.event.logical.shared.SelectionEvent;
|
||||||
|
@ -66,10 +66,9 @@ public class TabResourcesSelectionCard extends WizardCard {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
TabResource tabResource = tdOpenSession
|
|
||||||
.getSelectedTabResource();
|
TDGWTServiceAsync.INSTANCE.setTabResource(tdOpenSession
|
||||||
|
.getSelectedTabResource(),
|
||||||
TDGWTServiceAsync.INSTANCE.setTabResource(tabResource,
|
|
||||||
new AsyncCallback<Void>() {
|
new AsyncCallback<Void>() {
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
|
@ -91,20 +90,22 @@ public class TabResourcesSelectionCard extends WizardCard {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(Void result) {
|
public void onSuccess(Void result) {
|
||||||
|
getWizardWindow().fireCompleted(tdOpenSession
|
||||||
|
.getSelectedTabResource().getTrId());
|
||||||
|
getWizardWindow().close(false);
|
||||||
|
Log.info("OpenTD Tabular Resource selected :" + tdOpenSession
|
||||||
|
.getSelectedTabResource());
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
getWizardWindow().fireCompleted(tabResource.getTrId());
|
|
||||||
Log.info("OpenTD Tabular Resource selected :" + tabResource);
|
|
||||||
getWizardWindow().close(false);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//getWizardWindow().setNextButtonCommand(sayFinish);
|
getWizardWindow().setNextButtonCommand(sayFinish);
|
||||||
getWizardWindow().setFinishCommand(sayFinish);
|
//getWizardWindow().setFinishCommand(sayFinish);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.openwidget.client.dataresource.ResourceBundle;
|
import org.gcube.portlets.user.td.wizardwidget.client.dataresource.ResourceBundle;
|
||||||
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
||||||
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
|
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue