<elements xsi:type="commands:Handler" xmi:id="_4kk8oDoqEeud_N8qGaxX2Q" elementId="eu.etaxonomy.taxeditor.store.OpenDefinedTermHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.editor.definedterm.e4.handler.OpenDefinedTermEditorHandlerE4" command="_qEMrsIdPEeecZ4F2Y9Z0Og"/>
<elements xsi:type="commands:Handler" xmi:id="_4GeBAD4fEeuM4JU-Ch98ZA" elementId="eu.etaxonomy.taxeditor.store.OpenTermTreeHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.termtree.e4.handler.OpenTermTreeEditorHandler" command="_8aaicD4fEeuM4JU-Ch98ZA"/>
<elements xsi:type="commands:Handler" xmi:id="_oEReoEjAEe6gZ65AByRHxQ" elementId="eu.etaxonomy.taxeditor.io.e4.out.cdmlight.OpenColDPExportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.out.col.OpenColExportWizard" command="_lbmBoEi_Ee6gZ65AByRHxQ"/>
- <elements xsi:type="commands:Handler" xmi:id="_rng_YLU-Ee6JFM-mIdEBFA" elementId="eu.etaxonomy.taxeditor.io.e4.out.dwca.OpenWFOExportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.out.wfo.OpenWFOExportWizard" command="_1BzvkLU-Ee6JFM-mIdEBFA"/>
+ <elements xsi:type="commands:Handler" xmi:id="_rng_YLU-Ee6JFM-mIdEBFA" elementId="eu.etaxonomy.taxeditor.io.e4.out.dwca.OpenWfoBackboneExportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.out.wfo.OpenWfoBackboneExportWizardrtWizard" command="_1BzvkLU-Ee6JFM-mIdEBFA"/>
</fragments>
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_qT4hgIfTEeecZ4F2Y9Z0Og" featurename="children" parentElementId="eu.etaxonomy.taxeditor.workbench.menu.window" positionInList="before:eu.etaxonomy.taxeditor.application.windowMenu.last">
<elements xsi:type="menu:Menu" xmi:id="_LT3P8IfcEeecZ4F2Y9Z0Og" elementId="eu.etaxonomy.taxeditor.store.menu.termeditor" label="%menu.label.1">
import eu.etaxonomy.taxeditor.io.e4.out.AbstractOpenExportWizard;
/**
- * @author pplitzner
- * @since Oct 5, 2017
- *
+ * @author k.luther
+ * @since Jan 2024
*/
-public class OpenWFOExportWizard extends AbstractOpenExportWizard {
+public class OpenWfoBackboneExportWizard extends AbstractOpenExportWizard {
- /**
- * {@inheritDoc}
- */
@Override
protected Class<? extends AbstractExportWizard> getExportWizardClass() {
- return WFOExportWizard.class;
+ return WfoBackboneExportWizard.class;
}
@Override
@Execute
- public void execute(IEclipseContext ctx, Shell s)
- {
+ public void execute(IEclipseContext ctx, Shell s){
- AbstractExportWizard wizard = ContextInjectionFactory.make(getExportWizardClass(), ctx);
+ AbstractExportWizard<?> wizard = ContextInjectionFactory.make(getExportWizardClass(), ctx);
wizard.init();
WizardDialog dialog = new WizardDialog(s, wizard);
dialog.open();
}
-
-}
+}
\ No newline at end of file
import org.eclipse.jface.viewers.TreeSelection;
import eu.etaxonomy.cdm.filter.TaxonNodeFilter;
-import eu.etaxonomy.cdm.io.wfo.out.WfoExportConfigurator;
+import eu.etaxonomy.cdm.io.wfo.out.WfoBackboneExportConfigurator;
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto;
import eu.etaxonomy.taxeditor.io.e4.in.GenericConfiguratorWizardPageE4;
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizard;
* @author k.luther
* @since Jan 23, 2024
*/
-public class WFOExportWizard extends
- AbstractExportWizard<WfoExportConfigurator> {
+public class WfoBackboneExportWizard extends
+ AbstractExportWizard<WfoBackboneExportConfigurator> {
- private WfoExportConfigurator configurator;
+ private WfoBackboneExportConfigurator configurator;
private ExportToFileDestinationWizardPage page;
@Inject
- public WFOExportWizard(IEclipseContext context,
+ public WfoBackboneExportWizard(IEclipseContext context,
@Optional@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection) {
super(context, selection);
}
@Override
public void init() {
- configurator = WfoExportConfigurator.NewInstance();
+ configurator = WfoBackboneExportConfigurator.NewInstance();
if (selection instanceof TreeSelection && !selection.isEmpty()){
Iterator<?> it = selection.iterator();
}
@Override
- public WfoExportConfigurator getConfigurator() {
+ public WfoBackboneExportConfigurator getConfigurator() {
return configurator;
}
import eu.etaxonomy.cdm.io.jaxb.JaxbExportConfigurator;
import eu.etaxonomy.cdm.io.sdd.out.SDDExportConfigurator;
import eu.etaxonomy.cdm.io.tcsxml.out.TcsXmlExportConfigurator;
-import eu.etaxonomy.cdm.io.wfo.out.WfoExportConfigurator;
+import eu.etaxonomy.cdm.io.wfo.out.WfoBackboneExportConfigurator;
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
import eu.etaxonomy.cdm.model.name.Rank;
import eu.etaxonomy.cdm.model.taxon.Classification;
private boolean colDPExport = false;
private boolean dwcaExport = false;
- private boolean wfoExport = false;
+ private boolean wfoBackboneExport = false;
private DirectoryDialog folderDialog;
private Text text_exportFileName;
dwcaExport = true;
break;
case WFO_EXPORT:
- wfoExport = true;
+ wfoBackboneExport = true;
break;
default:
throw new RuntimeException("Export type not yet handeled: " + type);
return new ExportToFileDestinationWizardPage(DWCA_EXPORT, DWCA_EXPORT, "DwC-Archive Export",
"Export the content of the currently selected database into Darwin Core Archive format.", ZIP, config);
}
- public static ExportToFileDestinationWizardPage WFO(WfoExportConfigurator config) {
+ public static ExportToFileDestinationWizardPage WFO(WfoBackboneExportConfigurator config) {
return new ExportToFileDestinationWizardPage(WFO_EXPORT, WFO_EXPORT, "WFO Backbone Export",
"Export the content of the currently selected database into WFO Backbone format."
, ZIP, config);
gridDataSep.horizontalSpan = 2;
separator.setLayoutData(gridDataSep);
}
- if (classifications == null && !wfoExport) {
+ if (classifications == null && !wfoBackboneExport) {
classifications = CdmStore.getService(IClassificationService.class).list(null, null, null, null, null);
Collections.sort(classifications, (o1, o2) -> {
if (o1.equals(o2)) {
}
}
- if (csvExport || csvPrintExport || cdmLightExport || csvNameExport || dwcaExport || colDPExport || wfoExport) {
+ if (csvExport || csvPrintExport || cdmLightExport || csvNameExport || dwcaExport || colDPExport || wfoBackboneExport) {
// Label comboBoxLabel = new Label(composite, SWT.NONE);
// comboBoxLabel.setText("Classification");
GridLayout grid = new GridLayout();
grid.numColumns = 1;
selectNodeOrClassification.setLayout(grid);
- if ((cdmLightExport || dwcaExport || colDPExport || wfoExport) && !configurator.getTaxonNodeFilter().getSubtreeFilter().isEmpty()) {
- if (!wfoExport) {
+ if ((cdmLightExport || dwcaExport || colDPExport || wfoBackboneExport) && !configurator.getTaxonNodeFilter().getSubtreeFilter().isEmpty()) {
+ if (!wfoBackboneExport) {
checkUseSelectedTaxonNode = new Button(selectNodeOrClassification, SWT.RADIO);
}
String taxonStr = "";
}
}
}
- if (!wfoExport) {
+ if (!wfoBackboneExport) {
checkUseSelectedTaxonNode.setText("Export all selected subtree(s) (" + taxonStr + ")");
checkUseSelectedTaxonNode.addListener(SWT.Selection, e -> {
Button b = (Button) e.widget;
text_familyString.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
}
- }else if (wfoExport) {
+ }else if (wfoBackboneExport) {
Label label = new Label(composite, SWT.NONE);
label.setText("WFO Backbone export is only available for subtrees, not for classifications");
});
}
- if (node != null && !wfoExport) {
+ if (node != null && !wfoBackboneExport) {
selectedClassification = node.getClassification();
}
- if (!wfoExport) {
+ if (!wfoBackboneExport) {
createClassificationSelectionCombo(selectNodeOrClassification);
}
if (cdmLightExport) {
@Override
public boolean canFlipToNextPage() {
- return getFolderText() != null && !(wfoExport && configurator.getTaxonNodeFilter().getSubtreeFilter().isEmpty());
+ return getFolderText() != null && !(wfoBackboneExport && configurator.getTaxonNodeFilter().getSubtreeFilter().isEmpty());
}
}