Revision 89a2873b
Added by Katja Luther almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ExportToFileDestinationWizardPage.java | ||
---|---|---|
46 | 46 |
import eu.etaxonomy.cdm.io.jaxb.JaxbExportConfigurator; |
47 | 47 |
import eu.etaxonomy.cdm.io.sdd.out.SDDExportConfigurator; |
48 | 48 |
import eu.etaxonomy.cdm.io.tcsxml.out.TcsXmlExportConfigurator; |
49 |
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate; |
|
49 | 50 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
50 | 51 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
51 | 52 |
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDtoByNameComparator; |
52 | 53 |
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDtoByRankAndNameComparator; |
53 | 54 |
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDtoNaturalComparator; |
54 | 55 |
import eu.etaxonomy.taxeditor.datasource.CdmDataSourceRepository; |
55 |
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys; |
|
56 | 56 |
import eu.etaxonomy.taxeditor.preference.NavigatorOrderEnum; |
57 | 57 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
58 | 58 |
import eu.etaxonomy.taxeditor.remoting.source.CdmRemoteSourceException; |
... | ... | |
375 | 375 |
} |
376 | 376 |
|
377 | 377 |
int index = 0; |
378 |
if (PreferencesUtil.getStringValue(IPreferenceKeys.SORT_NODES) != null){
|
|
379 |
NavigatorOrderEnum orderInNavigator = NavigatorOrderEnum.valueOf(PreferencesUtil.getStringValue(IPreferenceKeys.SORT_NODES));
|
|
378 |
if (PreferencesUtil.getStringValue(PreferencePredicate.TaxonNodeOrder.getKey()) != null){
|
|
379 |
NavigatorOrderEnum orderInNavigator = NavigatorOrderEnum.valueOf(PreferencesUtil.getStringValue(PreferencePredicate.TaxonNodeOrder.getKey()));
|
|
380 | 380 |
|
381 | 381 |
for (String itemLabel : orderSelectionCombo.getItems()){ |
382 | 382 |
if (itemLabel.equalsIgnoreCase(orderInNavigator.getLabel())){ |
Also available in: Unified diff
use PreferencePredicate for exportDestinationWizard