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