ref #10448 rename WFO classification -> WFO Backbone
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / io / wizard / ExportToFileDestinationWizardPage.java
index c21ee5bc178e68dbac69205c2bad0bb05c80d4ed..c1822da2400378996c4a6ead51db41cbcc49b08c 100644 (file)
@@ -190,8 +190,8 @@ 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(WfoExportConfigurator config) {
-        return new ExportToFileDestinationWizardPage(WFO_EXPORT, WFO_EXPORT, "WFO Export",
-                "Export the content of the currently selected database into WFO "
+        return new ExportToFileDestinationWizardPage(WFO_EXPORT, WFO_EXPORT, "WFO Backbone Export",
+                "Export the content of the currently selected database into WFO Backbone format."
                 , ZIP, config);
     }
 
@@ -273,7 +273,7 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
             gridDataSep.horizontalSpan = 2;
             separator.setLayoutData(gridDataSep);
         }
-        if (classifications == null) {
+        if (classifications == null && !wfoExport) {
             classifications = CdmStore.getService(IClassificationService.class).list(null, null, null, null, null);
             Collections.sort(classifications, (o1, o2) -> {
                 if (o1.equals(o2)) {
@@ -353,9 +353,8 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
                 }
             }else if (wfoExport) {
 
-
                 Label label = new Label(composite, SWT.NONE);
-                label.setText("WFO export is only available for subtrees, not for classifications");
+                label.setText("WFO Backbone export is only available for subtrees, not for classifications");
                 GridData gridData = new GridData();
                 gridData.horizontalSpan = 2;
                 gridData.grabExcessHorizontalSpace = true;
@@ -388,7 +387,7 @@ public class ExportToFileDestinationWizardPage extends WizardPage implements Sel
                 });
             }
 
-            if (node != null) {
+            if (node != null && !wfoExport) {
                 selectedClassification = node.getClassification();
             }
             if (!wfoExport) {