ref #10448: add base url text field
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / io / wizard / ExportToFileDestinationWizardPage.java
index 41c1c407e0330bc35faf82fa21311000d626a51a..e1c63773d41c724e703d868747783d2e3814627d 100644 (file)
@@ -81,7 +81,7 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
     public static final String SDD_EXPORT = "SDD_EXPORT";
 
     public static final String DWCA_EXPORT = "DWCA_EXPORT";
-    public static final String WFO_EXPORT = "WFO_EXPORT";
+    public static final String WFO_BACKBONE_EXPORT = "WFO_BACKBONE_EXPORT";
     public static final String CDM_LIGHT_EXPORT = "CDM_LIGHT(CSV)";
     public static final String COL_DP_EXPORT = "COL DP";
     public static final String CSV_EXPORT = "CSV_EXPORT";
@@ -135,6 +135,8 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
 
     private Text text_familyString;
 
+    private Text text_baseUrl;
+
     protected ExportToFileDestinationWizardPage(String pageName, String type, String title, String description,
             String extension, ExportConfiguratorBase<?, ?, ?> configurator) {
         super(pageName);
@@ -159,7 +161,7 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
         case DWCA_EXPORT:
             dwcaExport = true;
             break;
-        case WFO_EXPORT:
+        case WFO_BACKBONE_EXPORT:
             wfoBackboneExport = true;
             break;
         default:
@@ -190,7 +192,7 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
                 "Export the content of the currently selected database into Darwin Core Archive format.", ZIP, config);
     }
     public static ExportToFileDestinationWizardPage WFO(WfoBackboneExportConfigurator config) {
-        return new ExportToFileDestinationWizardPage(WFO_EXPORT, WFO_EXPORT, "WFO Backbone Export",
+        return new ExportToFileDestinationWizardPage(WFO_BACKBONE_EXPORT, WFO_BACKBONE_EXPORT, "WFO Backbone Export",
                 "Export the content of the currently selected database into WFO Backbone format."
                 , ZIP, config);
     }
@@ -349,6 +351,14 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
                     text_familyString = new Text(wfoComp, SWT.BORDER);
                     text_familyString.setText(generateFamilyName(selectedNodes));
                     text_familyString.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+                    Label baseUrlString = new Label(wfoComp, SWT.NONE);
+                    baseUrlString.setText("Base url");
+                    text_baseUrl = new Text(wfoComp, SWT.BORDER);
+                    text_baseUrl.setText("");
+                    text_baseUrl.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+                    text_baseUrl.setToolTipText("The base url without /cdm_dataportal/taxon/{uuid}  e.g. https://portal.cybertaxonomy.org/salvador");
+
+
 
                 }
             }else if (wfoBackboneExport) {
@@ -562,9 +572,6 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
         return text_exportFileName.getText();
     }
 
-    /**
-     * @return the familyString
-     */
     public String getFamilyString() {
         return text_familyString.getText();
     }
@@ -573,6 +580,10 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
         return text_folder.getText();
     }
 
+    public String get_baseUrl() {
+        return text_baseUrl.getText();
+    }
+
     public Text getFolderComposite() {
         return text_folder;
     }