fixing compile issue
This commit is contained in:
parent
f319dc23fa
commit
86b16b5187
|
@ -13,8 +13,6 @@ import org.gcube.application.geoportalcommon.shared.products.model.AbstractRelaz
|
|||
import org.gcube.application.geoportalcommon.shared.products.model.LayerConcessioneDV;
|
||||
import org.gcube.application.geoportalcommon.shared.products.model.RelazioneScavoDV;
|
||||
import org.gcube.application.geoportalcommon.shared.products.model.UploadedImageDV;
|
||||
import org.gcube.portlets.user.geoportaldataentry.client.ConstantsGeoPortalDataEntryApp.RECORD_TYPE;
|
||||
import org.gcube.portlets.user.geoportaldataentry.client.GeoPortalDataEntryApp;
|
||||
import org.gcube.portlets.user.geoportaldataentry.client.GeoportalDataEntryServiceAsync;
|
||||
import org.gcube.portlets.user.geoportaldataentry.client.ui.utils.DialogInform;
|
||||
import org.gcube.portlets.user.geoportaldataentry.client.ui.utils.ModalConfirm;
|
||||
|
@ -110,8 +108,6 @@ public class UpdateFileset extends Composite {
|
|||
|
||||
private ConcessioneDV fullConcessione;
|
||||
|
||||
private RECORD_TYPE recordType;
|
||||
|
||||
private boolean placeholderListBoxIndex = true;
|
||||
|
||||
private HandlerManager uiBus = new HandlerManager(null);
|
||||
|
@ -125,6 +121,8 @@ public class UpdateFileset extends Composite {
|
|||
private Map<Integer, List<WorkspaceContentDV>> mapWSContentListBox = null;
|
||||
|
||||
private HandlerManager editorManagerBus;
|
||||
|
||||
private String profileID;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -135,11 +133,11 @@ public class UpdateFileset extends Composite {
|
|||
* @param recordType the record type
|
||||
* @param listFileSetPaths the list file set paths
|
||||
*/
|
||||
public UpdateFileset(HandlerManager editorManagerBus, BaseConcessioneDV selectedConcessione, RECORD_TYPE recordType, List<String> listFileSetPaths) {
|
||||
public UpdateFileset(HandlerManager editorManagerBus, BaseConcessioneDV selectedConcessione, String profileID, List<String> listFileSetPaths) {
|
||||
initWidget(uiBinder.createAndBindUi(this));
|
||||
this.editorManagerBus = editorManagerBus;
|
||||
this.selectedConcessione = selectedConcessione;
|
||||
this.recordType = recordType;
|
||||
this.profileID = profileID;
|
||||
this.listFileSetPaths = listFileSetPaths;
|
||||
listBoxPaths.addItem("Select a section...");
|
||||
for (String path : listFileSetPaths) {
|
||||
|
@ -163,20 +161,23 @@ public class UpdateFileset extends Composite {
|
|||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
Window.alert("This part must be revisited");
|
||||
|
||||
GeoPortalDataEntryApp.geoportalDataEntryService.getRecord(selectedConcessione.getItemId(), recordType,
|
||||
new AsyncCallback<ConcessioneDV>() {
|
||||
|
||||
@Override
|
||||
public void onSuccess(ConcessioneDV theRecord) {
|
||||
fullConcessione = theRecord;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(Throwable caught) {
|
||||
Window.alert(caught.getMessage());
|
||||
}
|
||||
});
|
||||
// GeoPortalDataEntryApp.geoportalDataEntryService.getRecord(selectedConcessione.getItemId(), recordType,
|
||||
// new AsyncCallback<ConcessioneDV>() {
|
||||
//
|
||||
// @Override
|
||||
// public void onSuccess(ConcessioneDV theRecord) {
|
||||
// fullConcessione = theRecord;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onFailure(Throwable caught) {
|
||||
// Window.alert(caught.getMessage());
|
||||
// }
|
||||
// });
|
||||
|
||||
buttonUpdate.addClickHandler(new ClickHandler() {
|
||||
|
||||
|
|
Loading…
Reference in New Issue