Revision 9e34cfb2
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ExportToFileDestinationWizardPage.java | ||
---|---|---|
35 | 35 |
import org.eclipse.swt.widgets.Listener; |
36 | 36 |
import org.eclipse.swt.widgets.Text; |
37 | 37 |
|
38 |
import eu.etaxonomy.cdm.api.application.CdmApplicationState; |
|
38 | 39 |
import eu.etaxonomy.cdm.api.service.IClassificationService; |
39 | 40 |
import eu.etaxonomy.cdm.io.cdmLight.CdmLightExportConfigurator; |
40 | 41 |
import eu.etaxonomy.cdm.io.common.ExportConfiguratorBase; |
... | ... | |
46 | 47 |
import eu.etaxonomy.cdm.io.sdd.out.SDDExportConfigurator; |
47 | 48 |
import eu.etaxonomy.cdm.io.tcsxml.out.TcsXmlExportConfigurator; |
48 | 49 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
50 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
|
49 | 51 |
import eu.etaxonomy.taxeditor.datasource.CdmDataSourceRepository; |
50 | 52 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
51 | 53 |
import eu.etaxonomy.taxeditor.remoting.source.CdmRemoteSourceException; |
... | ... | |
312 | 314 |
|
313 | 315 |
if (outputModelExport && !((CdmLightExportConfigurator)configurator).getTaxonNodeFilter().getTaxonNodesFilter().isEmpty()){ |
314 | 316 |
checkUseSelectedtaxonNode= new Button(composite, SWT.CHECK); |
315 |
checkUseSelectedtaxonNode.setText("Use selected Taxon Node (or whole Classification)"); |
|
317 |
String taxonStr = ""; |
|
318 |
TaxonNode node = CdmApplicationState.getCurrentAppConfig().getTaxonNodeService().load(((CdmLightExportConfigurator)configurator).getTaxonNodeFilter().getTaxonNodesFilter().get(0).getUuid()); |
|
319 |
if (node.hasTaxon()){ |
|
320 |
taxonStr = node.getTaxon().getName().getTitleCache(); |
|
321 |
} |
|
322 |
checkUseSelectedtaxonNode.setText("Export selected subtree ("+ taxonStr+")"); |
|
316 | 323 |
checkUseSelectedtaxonNode.addListener(SWT.Selection, new Listener() { |
317 | 324 |
@Override |
318 | 325 |
public void handleEvent(Event e) { |
Also available in: Unified diff
adapt file export wizard for subtree export and smaller changes in messages