Revision 69e82edd
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/CdmLightExportWizard.java | ||
---|---|---|
16 | 16 |
import org.eclipse.core.runtime.jobs.Job; |
17 | 17 |
import org.eclipse.jface.viewers.IStructuredSelection; |
18 | 18 |
import org.eclipse.jface.viewers.TreeSelection; |
19 |
import org.eclipse.swt.SWT; |
|
20 | 19 |
import org.eclipse.swt.widgets.Combo; |
21 |
import org.eclipse.swt.widgets.Listener; |
|
22 | 20 |
import org.eclipse.ui.IWorkbench; |
23 | 21 |
import org.eclipse.ui.progress.IProgressConstants; |
24 | 22 |
|
... | ... | |
39 | 37 |
|
40 | 38 |
private CdmLightExportConfigurator configurator; |
41 | 39 |
private ExportToFileDestinationWizardPage page; |
42 |
|
|
40 |
|
|
43 | 41 |
|
44 | 42 |
|
45 | 43 |
private final String description = "Export the contents of the currently selected database into Comma Separated Value format."; |
... | ... | |
54 | 52 |
}else{ |
55 | 53 |
configurator.setTaxonNodeFilter(TaxonNodeFilter.NewSubtreeInstance(node.getUuid())); |
56 | 54 |
} |
57 |
|
|
55 |
|
|
58 | 56 |
} |
59 |
|
|
60 |
|
|
57 |
|
|
58 |
|
|
61 | 59 |
} |
62 | 60 |
|
63 | 61 |
|
... | ... | |
85 | 83 |
for(Classification c:listClassifications){ |
86 | 84 |
if(c.getTitleCache().equalsIgnoreCase(combo.getItem(selectionIndex))){ |
87 | 85 |
set.add(c.getUuid()); |
88 |
|
|
86 |
|
|
89 | 87 |
if (!page.getCheckUseSelectedTaxonNode()){ |
90 | 88 |
configurator.setTaxonNodeFilter(TaxonNodeFilter.NewClassificationInstance(c.getUuid())); |
91 | 89 |
} |
92 | 90 |
} |
93 | 91 |
} |
94 |
|
|
92 |
|
|
95 | 93 |
|
96 | 94 |
} |
97 | 95 |
} |
... | ... | |
103 | 101 |
job.setUser(true); |
104 | 102 |
// schedule job |
105 | 103 |
job.schedule(); |
106 |
PreferencesUtil.getPreferenceStore().setValue("exportFolder", page.getFolderText());
|
|
104 |
PreferencesUtil.setStringValue("exportFolder", page.getFolderText());
|
|
107 | 105 |
return true; |
108 | 106 |
} |
109 | 107 |
|
... | ... | |
115 | 113 |
addPage(page); |
116 | 114 |
super.addPages(); |
117 | 115 |
} |
118 |
|
|
116 |
|
|
119 | 117 |
|
120 | 118 |
|
121 | 119 |
} |
Also available in: Unified diff
local preferences database specific