Revision cb53bcb3
Added by Katja Luther almost 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/CsvPrintExportWizard.java | ||
---|---|---|
60 | 60 |
+ page.getExportFileName(); |
61 | 61 |
|
62 | 62 |
final Combo combo = page.getCombo(); |
63 |
final List<Classification> listClassifications = CdmStore.getCurrentApplicationConfiguration().getClassificationService().listClassifications(null, null, null, null); |
|
64 |
if(combo != null){ |
|
65 |
int selectionIndex = combo.getSelectionIndex(); |
|
66 |
HashSet<UUID> set = new HashSet<UUID>(); |
|
67 |
if(selectionIndex == -1){ |
|
68 |
for(Classification c:listClassifications){ |
|
69 |
set.add(c.getUuid()); |
|
70 |
} |
|
71 |
}else{ |
|
72 |
for(Classification c:listClassifications){ |
|
73 |
if(c.getTitleCache().equalsIgnoreCase(combo.getItem(selectionIndex))){ |
|
74 |
set.add(c.getUuid()); |
|
75 |
} |
|
76 |
} |
|
77 |
|
|
78 |
configurator.setHasHeaderLines(true); |
|
79 |
|
|
80 |
} |
|
81 |
} else{ |
|
82 |
configurator.setClassificationUUID(listClassifications.get(0).getUuid()); |
|
83 |
} |
|
63 |
|
|
64 |
|
|
65 |
configurator.setClassificationUUID(page.getSelectedClassificationUUID()); |
|
66 |
|
|
84 | 67 |
|
85 | 68 |
if(CdmStore.getCurrentSessionManager().isRemoting()) { |
86 | 69 |
// create job |
Also available in: Unified diff
add selection of classification to csvPrintExport