diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVExportWizardTD.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVExportWizardTD.java index 76d8524..9653674 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVExportWizardTD.java +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/CSVExportWizardTD.java @@ -27,7 +27,7 @@ public class CSVExportWizardTD extends WizardWindow { exportSession= new CSVExportSession(); - SourceSelectionCard sourceSelection= new SourceSelectionCard(exportSession); + DestinationSelectionCard sourceSelection= new DestinationSelectionCard(exportSession); addCard(sourceSelection); sourceSelection.setup(); diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/SourceSelectionCard.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DestinationSelectionCard.java similarity index 69% rename from src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/SourceSelectionCard.java rename to src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DestinationSelectionCard.java index 8ffa7bb..258736d 100644 --- a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/SourceSelectionCard.java +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DestinationSelectionCard.java @@ -6,8 +6,8 @@ package org.gcube.portlets.user.td.csvexportwidget.client; import org.gcube.portlets.user.td.gwtservice.shared.csv.CSVExportSession; -import org.gcube.portlets.user.td.gwtservice.shared.source.FileSource; -import org.gcube.portlets.user.td.gwtservice.shared.source.WorkspaceSource; +import org.gcube.portlets.user.td.gwtservice.shared.destination.FileDestination; +import org.gcube.portlets.user.td.gwtservice.shared.destination.WorkspaceDestination; import org.gcube.portlets.user.td.wizardwidget.client.WizardCard; import com.allen_sauer.gwt.log.client.Log; @@ -25,44 +25,44 @@ import com.sencha.gxt.widget.core.client.form.Radio; * href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it * */ -public class SourceSelectionCard extends WizardCard { +public class DestinationSelectionCard extends WizardCard { protected final CSVExportSession exportSession; - final FileSource fileSource = FileSource.INSTANCE; - final WorkspaceSource workspaceSource = WorkspaceSource.INSTANCE; + final FileDestination fileDestination = FileDestination.INSTANCE; + final WorkspaceDestination workspaceDestination = WorkspaceDestination.INSTANCE; - public SourceSelectionCard(final CSVExportSession exportSession) { + public DestinationSelectionCard(final CSVExportSession exportSession) { super("CSV destination selection", ""); this.exportSession = exportSession; // Default - exportSession.setSource(fileSource); + exportSession.setDestination(fileDestination); - VerticalPanel sourceSelectionPanel = new VerticalPanel(); - sourceSelectionPanel.setStylePrimaryName(res.wizardCSS() + VerticalPanel destinationSelectionPanel = new VerticalPanel(); + destinationSelectionPanel.setStylePrimaryName(res.wizardCSS() .getImportSelectionSources()); Radio radioFileSource = new Radio(); radioFileSource.setBoxLabel("
"
- + fileSource.getName() + "
"
- + fileSource.getDescription() + "
"
- + workspaceSource.getName() + "
"
- + workspaceSource.getDescription() + "