Project

General

Profile

« Previous | Next » 

Revision 9e34cfb2

Added by Katja Luther over 6 years ago

adapt file export wizard for subtree export and smaller changes in messages

View differences:

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) {
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties
154 154

  
155 155
NewGrantedAuthority_AlreadyInDb=The granted authority already exists.
156 156

  
157
SetSecundumConfiguration_IncludeAcceptedTaxa=include accepted taxa
158
SetSecundumConfiguration_IncludeSynonyms=include synonyms
159
SetSecundumConfiguration_OverwriteExistingAccepted=overwrite existing references for accepted taxa
160
SetSecundumConfiguration_OverwriteExistingSynonyms=overwrite existing references for synonyms
161
SetSecundumConfiguration_EmptySecundumDetail=empty existing details
162
SetSecundumConfiguration_IncludeSharedtaxa=include shared taxa
157
SetSecundumConfiguration_IncludeAcceptedTaxa=Include accepted taxa
158
SetSecundumConfiguration_IncludeSynonyms=Include synonyms
159
SetSecundumConfiguration_OverwriteExistingAccepted=Overwrite existing references for accepted taxa
160
SetSecundumConfiguration_OverwriteExistingSynonyms=Overwrite existing references for synonyms
161
SetSecundumConfiguration_EmptySecundumDetail=Empty existing details
162
SetSecundumConfiguration_IncludeSharedtaxa=Include shared taxa
163 163
SetSecundumConfiguration_NewSecundum_Label=New secundum reference
164 164
SetSecundumConfiguration_Description=If no reference is chosen existing secundum references are deleted
165 165
SetSecundumConfiguration_Description_Configurator=Configure how to perform the set secundum reference operation
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties
154 154

  
155 155
NewGrantedAuthority_AlreadyInDb=Die GrantedAuthority ist bereits in der DB enthalten.
156 156

  
157
SetSecundumConfiguration_IncludeAcceptedTaxa=anwenden auf akzeptierte Taxa
158
SetSecundumConfiguration_IncludeSynonyms=anwenden auf Synonyme
159
SetSecundumConfiguration_OverwriteExistingAccepted=bestehende Secundum Referenzen bei akzeptierten Taxa ?berschreiben
160
SetSecundumConfiguration_OverwriteExistingSynonyms=bestehende Secundum Referenzen bei Synonymen ?berschreiben
161
SetSecundumConfiguration_EmptySecundumDetail=bestehende Details von Secundum Referenzen l?schen
162
SetSecundumConfiguration_IncludeSharedtaxa=auch mehrfach verwendete Taxa mit einbeziehen
157
SetSecundumConfiguration_IncludeAcceptedTaxa=Anwenden auf akzeptierte Taxa
158
SetSecundumConfiguration_IncludeSynonyms=Anwenden auf Synonyme
159
SetSecundumConfiguration_OverwriteExistingAccepted=Bestehende Secundum Referenzen bei akzeptierten Taxa ?berschreiben
160
SetSecundumConfiguration_OverwriteExistingSynonyms=Bestehende Secundum Referenzen bei Synonymen ?berschreiben
161
SetSecundumConfiguration_EmptySecundumDetail=Bestehende Details von Secundum Referenzen l?schen
162
SetSecundumConfiguration_IncludeSharedtaxa=Auch mehrfach verwendete Taxa mit einbeziehen
163 163
SetSecundumConfiguration_NewSecundum_Label=Neue Secundum Referenz
164 164
SetSecundumConfiguration_Description=Wenn keine Referenz ausgew?hlt wird, werden die bestehenden Secundum Referenzen gel?scht
165 165
SetSecundumConfiguration_Description_Configurator=Konfigurieren Sie, wie das Ersetzen der Secundum Referenz durchgef?hrt werden soll.

Also available in: Unified diff