Revision d018d823
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.navigation/OSGI-INF/l10n/bundle.properties | ||
---|---|---|
51 | 51 |
wizard.name.3 = ABCD |
52 | 52 |
wizard.name.4 = SDD |
53 | 53 |
wizard.name.5 = Specimen CDM Excel |
54 |
wizard.name.6 = JAXB |
|
55 |
wizard.name.8 = SDD |
|
56 |
wizard.name.9 = DwC-A |
|
54 | 57 |
wizard.name.14 = Specimen |
58 |
wizard.name.18 = CSV |
|
59 |
wizard.name.19 = CSV_NAME |
|
60 |
wizard.name.20 = CSV_PRINT |
|
61 |
wizard.name.22 = CDM light (csv) |
|
55 | 62 |
wizard.name.23 = Excel Distribution Data Update |
56 | 63 |
wizard.name.24 = RIS Reference |
eu.etaxonomy.taxeditor.navigation/fragment.e4xmi | ||
---|---|---|
10 | 10 |
<imports xsi:type="commands:Command" xmi:id="_AuNT8KnKEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.store.command.importSdd"/> |
11 | 11 |
<imports xsi:type="commands:Command" xmi:id="_Av4u8KnKEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.store.command.importExcelSpecimen"/> |
12 | 12 |
<imports xsi:type="commands:Command" xmi:id="_LCsbgKnKEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.store.command.importTcs"/> |
13 |
<imports xsi:type="commands:Command" xmi:id="_fQX7EKqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportJaxb"/> |
|
14 |
<imports xsi:type="commands:Command" xmi:id="_iaZnEKqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportSdd"/> |
|
15 |
<imports xsi:type="commands:Command" xmi:id="_juMxQKqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportDwca"/> |
|
16 |
<imports xsi:type="commands:Command" xmi:id="_kuP5AKqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportCsv"/> |
|
17 |
<imports xsi:type="commands:Command" xmi:id="_lMwZ8KqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportCsvName"/> |
|
18 |
<imports xsi:type="commands:Command" xmi:id="_mOC30KqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportCsvPrint"/> |
|
19 |
<imports xsi:type="commands:Command" xmi:id="_n1FHEKqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportCdmLight"/> |
|
13 | 20 |
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_oDvMsCTfEeeiN5lBIuqN3g" featurename="children" parentElementId="eu.etaxonomy.taxeditor.workbench.trimcontribution.mainToolbar"> |
14 | 21 |
<elements xsi:type="menu:ToolControl" xmi:id="_7kZI4CTfEeeiN5lBIuqN3g" elementId="eu.etaxonomy.taxeditor.navigation.toolcontrol.search_bar" contributionURI="bundleclass://eu.etaxonomy.taxeditor.navigation/eu.etaxonomy.taxeditor.navigation.search.SearchBar"/> |
15 | 22 |
</fragments> |
... | ... | |
47 | 54 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_nh_3MJIwEeeJAdt8ZUxyaw" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.moveTaxon" label="%command.label.7" command="_w4RNkJIxEeeJAdt8ZUxyaw"/> |
48 | 55 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_o1PAsJIwEeeJAdt8ZUxyaw" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.movefactualdata" label="%command.label.moveFactualData" command="_3PRy8JIxEeeJAdt8ZUxyaw"/> |
49 | 56 |
<children xsi:type="menu:MenuSeparator" xmi:id="_rBdnsJIwEeeJAdt8ZUxyaw" elementId="eu.etaxonomy.taxeditor.navigation.menuseparator.2"/> |
50 |
<children xsi:type="menu:Menu" xmi:id="_T8ey0KkeEeejedk4mZQIGw" elementId="eu.etaxonomy.taxeditor.navigation.menu.import" label="Import (E4)">
|
|
57 |
<children xsi:type="menu:Menu" xmi:id="_T8ey0KkeEeejedk4mZQIGw" elementId="eu.etaxonomy.taxeditor.navigation.menu.import" label="Import"> |
|
51 | 58 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_YMugAKkeEeejedk4mZQIGw" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.importSpecimens" label="Import Specimens" command="_AOq4QKnKEeeTAPHmaMLwQQ"/> |
52 | 59 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_2NC0kKnEEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.importAbcd" label="%wizard.name.3" command="_yBC78KnJEeeTAPHmaMLwQQ"/> |
53 | 60 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_3rMNkKnEEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.importExceldistribution" label="%wizard.name.23" command="_Anfn8KnKEeeTAPHmaMLwQQ"> |
... | ... | |
59 | 66 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_7XgHQKnEEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.importSdd" label="%wizard.name.4" command="_Av4u8KnKEeeTAPHmaMLwQQ"/> |
60 | 67 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_7w_lUKnEEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.importTcs" label="%wizard.name" command="_LCsbgKnKEeeTAPHmaMLwQQ"/> |
61 | 68 |
</children> |
69 |
<children xsi:type="menu:Menu" xmi:id="_rbInwKqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.navigation.menu.export" label="Export"> |
|
70 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_tPAZIKqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.exportJaxb" label="%wizard.name.6" command="_fQX7EKqhEeeXcJGhyhlrKA"/> |
|
71 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_xwZgsKqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.eu.etaxonomy.taxeditor.navigation.handledmenuitem.exportSdd" label="%wizard.name.8" command="_iaZnEKqhEeeXcJGhyhlrKA"/> |
|
72 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_zDuJwKqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.eu.etaxonomy.taxeditor.navigation.handledmenuitem.exportDwca" label="%wizard.name.9" command="_juMxQKqhEeeXcJGhyhlrKA"/> |
|
73 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_0e68cKqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.eu.etaxonomy.taxeditor.navigation.handledmenuitem.exportCsv" label="%wizard.name.18" command="_kuP5AKqhEeeXcJGhyhlrKA"/> |
|
74 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_2C_-UKqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.eu.etaxonomy.taxeditor.navigation.handledmenuitem.exportCsvName" label="%wizard.name.19" command="_lMwZ8KqhEeeXcJGhyhlrKA"/> |
|
75 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_3p8G8KqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.eu.etaxonomy.taxeditor.navigation.handledmenuitem.exportCsvPrint" label="%wizard.name.20" command="_mOC30KqhEeeXcJGhyhlrKA"/> |
|
76 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_44XB4KqhEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.eu.etaxonomy.taxeditor.navigation.handledmenuitem.exportCdmLight" label="%wizard.name.22" command="_n1FHEKqhEeeXcJGhyhlrKA"/> |
|
77 |
</children> |
|
62 | 78 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_wNp_wJIwEeeJAdt8ZUxyaw" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.export" label="%command.label.9" command="_ZkWNgKkOEeejedk4mZQIGw"/> |
63 | 79 |
<children xsi:type="menu:MenuSeparator" xmi:id="_x0uEMJIwEeeJAdt8ZUxyaw" elementId="eu.etaxonomy.taxeditor.navigation.menuseparator.3" visible="false"/> |
64 | 80 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_yH9JQJIwEeeJAdt8ZUxyaw" elementId="eu.etaxonomy.taxeditor.navigation.handledmenuitem.delete" label="%command.label.10" command="__n644JIxEeeJAdt8ZUxyaw"/> |
eu.etaxonomy.taxeditor.store/fragment.e4xmi | ||
---|---|---|
113 | 113 |
<elements xsi:type="commands:Command" xmi:id="_bLGTMKmuEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.store.command.importSdd" commandName="%wizard.name.4"/> |
114 | 114 |
<elements xsi:type="commands:Command" xmi:id="_2JV9IKnAEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.store.command.importExcelSpecimen" commandName="%wizard.name.5"/> |
115 | 115 |
<elements xsi:type="commands:Command" xmi:id="_OQ9n8KnCEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.store.command.importTcs" commandName="%wizard.name"/> |
116 |
<elements xsi:type="commands:Command" xmi:id="_L0xNEKqYEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportCsv" commandName="%wizard.name.18"/> |
|
116 |
<elements xsi:type="commands:Command" xmi:id="_L0xNEKqYEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportJaxb" commandName="%wizard.name.6"/> |
|
117 |
<elements xsi:type="commands:Command" xmi:id="_ybovsKqZEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportSdd" commandName="%wizard.name.8"/> |
|
118 |
<elements xsi:type="commands:Command" xmi:id="_y69I8KqZEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportDwca" commandName="%wizard.name.9"/> |
|
119 |
<elements xsi:type="commands:Command" xmi:id="_y_uUMKqZEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportCsv" commandName="%wizard.name.18"/> |
|
120 |
<elements xsi:type="commands:Command" xmi:id="_zDy74KqZEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportCsvName" commandName="%wizard.name.19"/> |
|
121 |
<elements xsi:type="commands:Command" xmi:id="_zIKegKqZEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportCsvPrint" commandName="%wizard.name.20"/> |
|
122 |
<elements xsi:type="commands:Command" xmi:id="_zLKvMKqZEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.command.exportCdmLight" commandName="%wizard.name.22"/> |
|
117 | 123 |
</fragments> |
118 | 124 |
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_swGH0GhvEee3K4uKJljEYg" featurename="handlers" parentElementId="org.eclipse.e4.legacy.ide.application"> |
119 | 125 |
<elements xsi:type="commands:Handler" xmi:id="_rVEdIGcjEee0qLTtA2ZpVQ" elementId="eu.etaxonomy.taxeditor.featuretree.e4.handler.RemoveFeatureHandler" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.featuretree.e4.handler.RemoveFeatureHandler" command="_fNBtQGcjEee0qLTtA2ZpVQ"/> |
... | ... | |
129 | 135 |
<elements xsi:type="commands:Handler" xmi:id="_do2IAKmuEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.io.e4.sdd.OpenSddImportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.in.sdd.OpenSddImportWizard" command="_bLGTMKmuEeeTAPHmaMLwQQ"/> |
130 | 136 |
<elements xsi:type="commands:Handler" xmi:id="_6BmBEKnAEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.io.e4.excel.specimen.OpenExcelSpecimenImportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.in.excel.specimen.OpenExcelSpecimenImportWizard" command="_2JV9IKnAEeeTAPHmaMLwQQ"/> |
131 | 137 |
<elements xsi:type="commands:Handler" xmi:id="_Q8Z6gKnCEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.io.e4.tcs.TcsImportWizardE4" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.in.tcs.TcsImportWizardE4" command="_OQ9n8KnCEeeTAPHmaMLwQQ"/> |
132 |
<elements xsi:type="commands:Handler" xmi:id="_SciLQKqYEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.io.e4.out.csv.OpenCsvExportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.out.csv.OpenCsvExportWizard" command="_L0xNEKqYEeeXcJGhyhlrKA"/> |
|
138 |
<elements xsi:type="commands:Handler" xmi:id="_SciLQKqYEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.io.e4.out.csv.OpenCsvExportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.out.csv.OpenCsvExportWizard" command="_y_uUMKqZEeeXcJGhyhlrKA"/> |
|
139 |
<elements xsi:type="commands:Handler" xmi:id="_SOrDgKqaEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.io.e4.out.jaxb.OpenJaxbExportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.out.jaxb.OpenJaxbExportWizard" command="_L0xNEKqYEeeXcJGhyhlrKA"/> |
|
140 |
<elements xsi:type="commands:Handler" xmi:id="_Uilm4KqaEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.io.e4.out.sdd.OpenSddExportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.out.sdd.OpenSddExportWizard" command="_ybovsKqZEeeXcJGhyhlrKA"/> |
|
141 |
<elements xsi:type="commands:Handler" xmi:id="_V7abAKqaEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.io.e4.out.dwca.OpenDwcaExportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.out.dwca.OpenDwcaExportWizard" command="_y69I8KqZEeeXcJGhyhlrKA"/> |
|
142 |
<elements xsi:type="commands:Handler" xmi:id="_W3SNYKqaEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.io.e4.out.csv.name.OpenCsvNameExportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.out.csv.name.OpenCsvNameExportWizard" command="_zDy74KqZEeeXcJGhyhlrKA"/> |
|
143 |
<elements xsi:type="commands:Handler" xmi:id="_YKaCIKqaEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.io.e4.out.csv.print.OpenCsvPrintExportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.out.csv.print.OpenCsvPrintExportWizard" command="_zIKegKqZEeeXcJGhyhlrKA"/> |
|
144 |
<elements xsi:type="commands:Handler" xmi:id="_Y2UF4KqaEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.io.e4.out.cdmlight.OpenCdmLightExportWizard" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.io.e4.out.cdmlight.OpenCdmLightExportWizard" command="_zLKvMKqZEeeXcJGhyhlrKA"/> |
|
133 | 145 |
</fragments> |
134 | 146 |
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_qT4hgIfTEeecZ4F2Y9Z0Og" featurename="children" parentElementId="eu.etaxonomy.taxeditor.workbench.menu.window" positionInList="before:eu.etaxonomy.taxeditor.application.windowMenu.last"> |
135 | 147 |
<elements xsi:type="menu:Menu" xmi:id="_LT3P8IfcEeecZ4F2Y9Z0Og" elementId="eu.etaxonomy.taxeditor.store.menu.termeditor" label="Term Editor"> |
... | ... | |
144 | 156 |
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_pVVyEJFJEeeDJpjGQES7gw" featurename="addons" parentElementId="org.eclipse.e4.legacy.ide.application"> |
145 | 157 |
<elements xsi:type="application:Addon" xmi:id="_q4JBkJFJEeeDJpjGQES7gw" elementId="eu.etaxonomy.taxeditor.event.EventUtility" contributionURI="bundleclass://eu.etaxonomy.taxeditor.store/eu.etaxonomy.taxeditor.event.EventUtility"/> |
146 | 158 |
</fragments> |
147 |
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_ITE10KkVEeejedk4mZQIGw" featurename="children" parentElementId="eu.etaxonomy.taxeditor.workbench.menu.file" positionInList="before:eu.etaxonomy.taxeditor.application.handledmenuitem.export">
|
|
148 |
<elements xsi:type="menu:Menu" xmi:id="_QC5O8KkaEeejedk4mZQIGw" elementId="eu.etaxonomy.taxeditor.store.menu.import" label="Import (E4)">
|
|
159 |
<fragments xsi:type="fragment:StringModelFragment" xmi:id="_ITE10KkVEeejedk4mZQIGw" featurename="children" parentElementId="eu.etaxonomy.taxeditor.workbench.menu.file" positionInList="before:eu.etaxonomy.taxeditor.application.filemenu.io">
|
|
160 |
<elements xsi:type="menu:Menu" xmi:id="_QC5O8KkaEeejedk4mZQIGw" elementId="eu.etaxonomy.taxeditor.store.menu.import" label="Import"> |
|
149 | 161 |
<visibleWhen xsi:type="ui:CoreExpression" xmi:id="_UL4dkKkaEeejedk4mZQIGw" coreExpressionId="isCdmStoreConnected"/> |
150 | 162 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_RUOtQKkVEeejedk4mZQIGw" elementId="eu.etaxonomy.taxeditor.workbench.handledmenuitem.importspecimens" label="%wizard.name.14" command="_TwGSwKkVEeejedk4mZQIGw"/> |
151 | 163 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_NO718KmQEeeDJPU_cUTI2g" elementId="eu.etaxonomy.taxeditor.store.handledmenuitem.importAbcd" label="%wizard.name.3" command="_QbHeEKmQEeeDJPU_cUTI2g"/> |
... | ... | |
158 | 170 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_hXY2UKmuEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.store.handledmenuitem.importSdd" label="%wizard.name.4" command="_bLGTMKmuEeeTAPHmaMLwQQ"/> |
159 | 171 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_X2Xb8KnCEeeTAPHmaMLwQQ" elementId="eu.etaxonomy.taxeditor.store.handledmenuitem.importTcs" label="%wizard.name" command="_OQ9n8KnCEeeTAPHmaMLwQQ"/> |
160 | 172 |
</elements> |
161 |
<elements xsi:type="menu:Menu" xmi:id="_z6EugKqXEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.menu.export" label="Export (E4)">
|
|
173 |
<elements xsi:type="menu:Menu" xmi:id="_z6EugKqXEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.menu.export" label="Export"> |
|
162 | 174 |
<visibleWhen xsi:type="ui:CoreExpression" xmi:id="_3eyLYKqXEeeXcJGhyhlrKA" coreExpressionId="isCdmStoreConnected"/> |
163 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_V3eBEKqYEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.handledmenuitem.wizardname18" label="%wizard.name.18" command="_L0xNEKqYEeeXcJGhyhlrKA"/> |
|
175 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_b9E38KqZEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.handledmenuitem.exportJaxb" label="%wizard.name.6" command="_L0xNEKqYEeeXcJGhyhlrKA"/> |
|
176 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_lXe84KqZEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.handledmenuitem.exportSdd" label="%wizard.name.8" command="_ybovsKqZEeeXcJGhyhlrKA"/> |
|
177 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_nf4z0KqZEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.handledmenuitem.exportDwca" label="%wizard.name.9" command="_y69I8KqZEeeXcJGhyhlrKA"/> |
|
178 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_V3eBEKqYEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.handledmenuitem.exportCsv" label="%wizard.name.18" command="_y_uUMKqZEeeXcJGhyhlrKA"/> |
|
179 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_qR5ocKqZEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.handledmenuitem.exportCsvName" label="%wizard.name.19" command="_zDy74KqZEeeXcJGhyhlrKA"/> |
|
180 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_tBUcEKqZEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.handledmenuitem.exportCsvPrint" label="%wizard.name.20" command="_zIKegKqZEeeXcJGhyhlrKA"/> |
|
181 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_uruvcKqZEeeXcJGhyhlrKA" elementId="eu.etaxonomy.taxeditor.store.handledmenuitem.exportCdmLight" label="%wizard.name.22" command="_zLKvMKqZEeeXcJGhyhlrKA"/> |
|
164 | 182 |
</elements> |
165 | 183 |
</fragments> |
166 | 184 |
</fragment:ModelFragments> |
eu.etaxonomy.taxeditor.store/plugin.xml | ||
---|---|---|
179 | 179 |
type="java.util.List"> |
180 | 180 |
</commandParameterType> |
181 | 181 |
</extension> |
182 |
<extension |
|
183 |
point="org.eclipse.ui.exportWizards"> |
|
184 |
<category |
|
185 |
id="eu.etaxonomy.taxeditor.export.category.cdm" |
|
186 |
name="%category.name.0"> |
|
187 |
</category> |
|
188 |
<wizard |
|
189 |
category="eu.etaxonomy.taxeditor.export.category.cdm" |
|
190 |
class="eu.etaxonomy.taxeditor.io.wizard.JaxbExportWizard" |
|
191 |
id="eu.etaxonomy.taxeditor.io.export.jaxb" |
|
192 |
name="%wizard.name.6"> |
|
193 |
</wizard> |
|
194 |
<!--<wizard |
|
195 |
category="eu.etaxonomy.taxeditor.export.category.cdm" |
|
196 |
class="eu.etaxonomy.taxeditor.io.wizard.BerlinModelExportWizard" |
|
197 |
id="eu.etaxonomy.taxeditor.io.export.berlinModel" |
|
198 |
name="%wizard.name.7"> |
|
199 |
</wizard>--> |
|
200 |
<category |
|
201 |
id="eu.etaxonomy.taxeditor.export.category.excel" |
|
202 |
name="%category.name.1"> |
|
203 |
</category> |
|
204 |
<wizard |
|
205 |
category="eu.etaxonomy.taxeditor.export.category.cdm" |
|
206 |
class="eu.etaxonomy.taxeditor.io.wizard.SddExportWizard" |
|
207 |
id="eu.etaxonomy.taxeditor.io.export.sdd" |
|
208 |
name="%wizard.name.8"> |
|
209 |
</wizard> |
|
210 |
<wizard |
|
211 |
category="eu.etaxonomy.taxeditor.export.category.cdm" |
|
212 |
class="eu.etaxonomy.taxeditor.io.wizard.DarwinCoreArchiveExportWizard" |
|
213 |
id="eu.etaxonomy.taxeditor.io.export.dwca" |
|
214 |
name="%wizard.name.9"> |
|
215 |
</wizard> |
|
216 |
<wizard |
|
217 |
category="eu.etaxonomy.taxeditor.export.category.cdm" |
|
218 |
class="eu.etaxonomy.taxeditor.io.wizard.CsvNameExportWizard" |
|
219 |
id="eu.etaxonomy.taxeditor.io.export.csv_name" |
|
220 |
name="%wizard.name.19"> |
|
221 |
</wizard> |
|
222 |
<wizard |
|
223 |
category="eu.etaxonomy.taxeditor.export.category.cdm" |
|
224 |
class="eu.etaxonomy.taxeditor.io.wizard.CsvPrintExportWizard" |
|
225 |
id="eu.etaxonomy.taxeditor.io.export.csv_print" |
|
226 |
name="%wizard.name.20"> |
|
227 |
</wizard> |
|
228 |
<wizard |
|
229 |
category="eu.etaxonomy.taxeditor.export.category.cdm" |
|
230 |
class="eu.etaxonomy.taxeditor.io.wizard.CdmLightExportWizard" |
|
231 |
id="eu.etaxonomy.taxeditor.io.export.output_model" |
|
232 |
name="%wizard.name.22"> |
|
233 |
</wizard> |
|
234 |
</extension> |
|
235 | 182 |
<extension |
236 | 183 |
point="org.eclipse.ui.newWizards"> |
237 | 184 |
<wizard |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/AbstractExportWizardE4.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.taxeditor.io.e4.out; |
11 | 11 |
|
12 |
import org.eclipse.e4.core.contexts.ContextInjectionFactory; |
|
13 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
|
14 |
import org.eclipse.jface.viewers.IStructuredSelection; |
|
12 | 15 |
import org.eclipse.jface.wizard.Wizard; |
13 | 16 |
|
14 | 17 |
import eu.etaxonomy.cdm.io.common.IIoConfigurator; |
15 |
import eu.etaxonomy.taxeditor.io.wizard.GenericConfiguratorWizardPage;
|
|
18 |
import eu.etaxonomy.taxeditor.io.e4.in.GenericConfiguratorWizardPageE4;
|
|
16 | 19 |
|
17 | 20 |
/** |
18 | 21 |
* |
... | ... | |
25 | 28 |
|
26 | 29 |
protected final String CONFIGURATION_PAGE = "CONFIGURATION_PAGE"; |
27 | 30 |
|
28 |
private GenericConfiguratorWizardPage pageConfiguration; |
|
31 |
private GenericConfiguratorWizardPageE4 pageConfiguration; |
|
32 |
|
|
33 |
protected IStructuredSelection selection; |
|
34 |
|
|
35 |
private IEclipseContext context; |
|
36 |
|
|
37 |
public AbstractExportWizardE4(IEclipseContext context) { |
|
38 |
this(context, null); |
|
39 |
} |
|
40 |
|
|
41 |
public AbstractExportWizardE4(IEclipseContext context, IStructuredSelection selection) { |
|
42 |
this.context = context; |
|
43 |
this.selection = selection; |
|
44 |
} |
|
29 | 45 |
|
30 | 46 |
/** {@inheritDoc} */ |
31 | 47 |
@Override |
32 | 48 |
public void addPages() { |
33 | 49 |
super.addPages(); |
34 | 50 |
|
35 |
pageConfiguration = GenericConfiguratorWizardPage.Export(CONFIGURATION_PAGE, getConfigurator(), null); |
|
51 |
pageConfiguration = ContextInjectionFactory.make(GenericConfiguratorWizardPageE4.class, context); |
|
52 |
pageConfiguration.initExport(getConfigurator(), null); |
|
36 | 53 |
this.addPage(pageConfiguration); |
37 | 54 |
} |
38 | 55 |
|
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/AbstractOpenExportWizard.java | ||
---|---|---|
20 | 20 |
* |
21 | 21 |
*/ |
22 | 22 |
public abstract class AbstractOpenExportWizard { |
23 |
|
|
23 | 24 |
@Execute |
24 | 25 |
public void execute(IEclipseContext ctx, Shell s) |
25 | 26 |
{ |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/cdmlight/CdmLightExportWizardE4.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2017 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
package eu.etaxonomy.taxeditor.io.e4.out.cdmlight; |
|
10 |
|
|
11 |
import java.io.File; |
|
12 |
import java.util.HashSet; |
|
13 |
import java.util.List; |
|
14 |
import java.util.UUID; |
|
15 |
|
|
16 |
import javax.inject.Inject; |
|
17 |
import javax.inject.Named; |
|
18 |
|
|
19 |
import org.eclipse.core.runtime.jobs.Job; |
|
20 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
|
21 |
import org.eclipse.e4.core.di.annotations.Optional; |
|
22 |
import org.eclipse.e4.ui.services.IServiceConstants; |
|
23 |
import org.eclipse.jface.viewers.IStructuredSelection; |
|
24 |
import org.eclipse.jface.viewers.TreeSelection; |
|
25 |
import org.eclipse.swt.widgets.Combo; |
|
26 |
import org.eclipse.ui.progress.IProgressConstants; |
|
27 |
|
|
28 |
import eu.etaxonomy.cdm.filter.TaxonNodeFilter; |
|
29 |
import eu.etaxonomy.cdm.io.cdmLight.CdmLightExportConfigurator; |
|
30 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
|
31 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
|
32 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4; |
|
33 |
import eu.etaxonomy.taxeditor.io.wizard.ExportToFileDestinationWizardPage; |
|
34 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
35 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
|
36 |
|
|
37 |
/** |
|
38 |
* @author k.luther |
|
39 |
* @date 21.03.2017 |
|
40 |
* |
|
41 |
*/ |
|
42 |
public class CdmLightExportWizardE4 extends |
|
43 |
AbstractExportWizardE4<CdmLightExportConfigurator> { |
|
44 |
|
|
45 |
|
|
46 |
private CdmLightExportConfigurator configurator; |
|
47 |
private ExportToFileDestinationWizardPage page; |
|
48 |
|
|
49 |
@Inject |
|
50 |
public CdmLightExportWizardE4(IEclipseContext context, |
|
51 |
@Optional@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection) { |
|
52 |
super(context, selection); |
|
53 |
} |
|
54 |
|
|
55 |
@Override |
|
56 |
public void init() { |
|
57 |
configurator = new CdmLightExportConfigurator(null); |
|
58 |
if (selection instanceof TreeSelection && !selection.isEmpty()){ |
|
59 |
TaxonNode node = (TaxonNode)selection.getFirstElement(); |
|
60 |
if (node.getParent() == null){ |
|
61 |
configurator.setTaxonNodeFilter(TaxonNodeFilter.NewClassificationInstance(node.getClassification().getUuid())); |
|
62 |
}else{ |
|
63 |
configurator.setTaxonNodeFilter(TaxonNodeFilter.NewSubtreeInstance(node.getUuid())); |
|
64 |
} |
|
65 |
|
|
66 |
} |
|
67 |
} |
|
68 |
|
|
69 |
|
|
70 |
@Override |
|
71 |
public CdmLightExportConfigurator getConfigurator() { |
|
72 |
return configurator; |
|
73 |
} |
|
74 |
|
|
75 |
|
|
76 |
@Override |
|
77 |
public boolean performFinish() { |
|
78 |
String urlString = page.getFolderText() + File.separator; |
|
79 |
//+ page.getExportFileName(); |
|
80 |
|
|
81 |
final Combo combo = page.getCombo(); |
|
82 |
final List<Classification> listClassifications = CdmStore.getCurrentApplicationConfiguration().getClassificationService().listClassifications(null, null, null, null); |
|
83 |
if(combo != null){ |
|
84 |
int selectionIndex = combo.getSelectionIndex(); |
|
85 |
HashSet<UUID> set = new HashSet<UUID>(); |
|
86 |
if(selectionIndex == -1){ |
|
87 |
for(Classification c:listClassifications){ |
|
88 |
set.add(c.getUuid()); |
|
89 |
} |
|
90 |
}else{ |
|
91 |
for(Classification c:listClassifications){ |
|
92 |
if(c.getTitleCache().equalsIgnoreCase(combo.getItem(selectionIndex))){ |
|
93 |
set.add(c.getUuid()); |
|
94 |
|
|
95 |
if (!page.getCheckUseSelectedTaxonNode()){ |
|
96 |
configurator.setTaxonNodeFilter(TaxonNodeFilter.NewClassificationInstance(c.getUuid())); |
|
97 |
} |
|
98 |
} |
|
99 |
} |
|
100 |
|
|
101 |
|
|
102 |
} |
|
103 |
} |
|
104 |
|
|
105 |
// create job |
|
106 |
Job job = CdmStore.getExportManager().createIOServiceJob(configurator, urlString); |
|
107 |
// configure the job |
|
108 |
job.setProperty(IProgressConstants.KEEP_PROPERTY, true); |
|
109 |
job.setUser(true); |
|
110 |
// schedule job |
|
111 |
job.schedule(); |
|
112 |
PreferencesUtil.getPreferenceStore().setValue("exportFolder", page.getFolderText()); |
|
113 |
return true; |
|
114 |
} |
|
115 |
|
|
116 |
@Override |
|
117 |
public void addPages() { |
|
118 |
//standard page |
|
119 |
page = ExportToFileDestinationWizardPage.OutputModel(configurator); |
|
120 |
|
|
121 |
addPage(page); |
|
122 |
super.addPages(); |
|
123 |
} |
|
124 |
|
|
125 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/cdmlight/OpenCdmLightExportWizard.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2017 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
package eu.etaxonomy.taxeditor.io.e4.out.cdmlight; |
|
10 |
|
|
11 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4; |
|
12 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractOpenExportWizard; |
|
13 |
|
|
14 |
/** |
|
15 |
* @author pplitzner |
|
16 |
* @since Oct 5, 2017 |
|
17 |
* |
|
18 |
*/ |
|
19 |
public class OpenCdmLightExportWizard extends AbstractOpenExportWizard { |
|
20 |
|
|
21 |
/** |
|
22 |
* {@inheritDoc} |
|
23 |
*/ |
|
24 |
@Override |
|
25 |
protected Class<? extends AbstractExportWizardE4> getExportWizardClass() { |
|
26 |
return CdmLightExportWizardE4.class; |
|
27 |
} |
|
28 |
|
|
29 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/csv/CsvExportWizardE4.java | ||
---|---|---|
14 | 14 |
import java.util.List; |
15 | 15 |
import java.util.UUID; |
16 | 16 |
|
17 |
import javax.inject.Inject; |
|
18 |
|
|
17 | 19 |
import org.eclipse.core.runtime.jobs.Job; |
20 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
|
18 | 21 |
import org.eclipse.swt.widgets.Combo; |
19 | 22 |
import org.eclipse.ui.progress.IProgressConstants; |
20 | 23 |
|
... | ... | |
34 | 37 |
private CsvDemoExportConfigurator configurator; |
35 | 38 |
private ExportToFileDestinationWizardPage page; |
36 | 39 |
|
37 |
private final String description = "Export the contents of the currently selected database into Comma Separated Value format."; |
|
38 |
|
|
40 |
@Inject |
|
41 |
public CsvExportWizardE4(IEclipseContext context) { |
|
42 |
super(context); |
|
43 |
} |
|
39 | 44 |
@Override |
40 | 45 |
public void init() { |
41 | 46 |
configurator = CsvDemoExportConfigurator.NewInstance(null, null); |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/csv/name/CsvNameExportWizardE4.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2007 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
|
|
10 |
package eu.etaxonomy.taxeditor.io.e4.out.csv.name; |
|
11 |
|
|
12 |
import java.io.File; |
|
13 |
|
|
14 |
import javax.inject.Inject; |
|
15 |
|
|
16 |
import org.eclipse.core.runtime.jobs.Job; |
|
17 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
|
18 |
import org.eclipse.swt.widgets.Combo; |
|
19 |
import org.eclipse.ui.progress.IProgressConstants; |
|
20 |
|
|
21 |
import eu.etaxonomy.cdm.io.csv.caryophyllales.out.CsvNameExportConfigurator; |
|
22 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4; |
|
23 |
import eu.etaxonomy.taxeditor.io.wizard.ExportToFileDestinationWizardPage; |
|
24 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
|
25 |
|
|
26 |
/** |
|
27 |
* @author k.luther |
|
28 |
* @created Apr. 12, 2015 |
|
29 |
* @version 1.0 |
|
30 |
*/ |
|
31 |
public class CsvNameExportWizardE4 extends AbstractExportWizardE4<CsvNameExportConfigurator> { |
|
32 |
|
|
33 |
|
|
34 |
protected CsvNameExportConfigurator configurator; |
|
35 |
protected ExportToFileDestinationWizardPage page; |
|
36 |
|
|
37 |
@Inject |
|
38 |
public CsvNameExportWizardE4(IEclipseContext context) { |
|
39 |
super(context); |
|
40 |
} |
|
41 |
|
|
42 |
@Override |
|
43 |
public void init() { |
|
44 |
configurator = CsvNameExportConfigurator.NewInstance(null,null); |
|
45 |
configurator.setNamesOnly(true); |
|
46 |
} |
|
47 |
|
|
48 |
@Override |
|
49 |
public CsvNameExportConfigurator getConfigurator() { |
|
50 |
return configurator; |
|
51 |
} |
|
52 |
|
|
53 |
@Override |
|
54 |
public boolean performFinish() { |
|
55 |
String urlString = page.getFolderText() + File.separator |
|
56 |
+ page.getExportFileName(); |
|
57 |
|
|
58 |
final Combo combo = page.getCombo(); |
|
59 |
configurator.setClassificationUUID(page.getSelectedClassificationUUID()); |
|
60 |
|
|
61 |
// create job |
|
62 |
Job job = CdmStore.getExportManager().createIOServiceJob(configurator, new File(urlString)); |
|
63 |
// configure the job |
|
64 |
job.setProperty(IProgressConstants.KEEP_PROPERTY, true); |
|
65 |
job.setUser(true); |
|
66 |
// schedule job |
|
67 |
job.schedule(); |
|
68 |
|
|
69 |
return true; |
|
70 |
} |
|
71 |
|
|
72 |
@Override |
|
73 |
public void addPages() { |
|
74 |
//TODO create page with drop down menu for export for single classification. |
|
75 |
// super.addPages(); |
|
76 |
|
|
77 |
|
|
78 |
//standard page |
|
79 |
page = ExportToFileDestinationWizardPage.CsvNames(configurator); |
|
80 |
|
|
81 |
addPage(page); |
|
82 |
} |
|
83 |
} |
|
84 |
|
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/csv/name/OpenCsvNameExportWizard.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2017 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
package eu.etaxonomy.taxeditor.io.e4.out.csv.name; |
|
10 |
|
|
11 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4; |
|
12 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractOpenExportWizard; |
|
13 |
|
|
14 |
/** |
|
15 |
* @author pplitzner |
|
16 |
* @since Oct 5, 2017 |
|
17 |
* |
|
18 |
*/ |
|
19 |
public class OpenCsvNameExportWizard extends AbstractOpenExportWizard { |
|
20 |
|
|
21 |
/** |
|
22 |
* {@inheritDoc} |
|
23 |
*/ |
|
24 |
@Override |
|
25 |
protected Class<? extends AbstractExportWizardE4> getExportWizardClass() { |
|
26 |
return CsvNameExportWizardE4.class; |
|
27 |
} |
|
28 |
|
|
29 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/csv/print/CsvPrintExportWizardE4.java | ||
---|---|---|
1 |
package eu.etaxonomy.taxeditor.io.e4.out.csv.print; |
|
2 |
|
|
3 |
import java.io.File; |
|
4 |
|
|
5 |
import javax.inject.Inject; |
|
6 |
|
|
7 |
import org.eclipse.core.runtime.jobs.Job; |
|
8 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
|
9 |
import org.eclipse.ui.progress.IProgressConstants; |
|
10 |
|
|
11 |
import eu.etaxonomy.cdm.io.csv.caryophyllales.out.CsvNameExportConfigurator; |
|
12 |
import eu.etaxonomy.taxeditor.io.e4.out.csv.name.CsvNameExportWizardE4; |
|
13 |
import eu.etaxonomy.taxeditor.io.wizard.ExportToFileDestinationWizardPage; |
|
14 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
|
15 |
|
|
16 |
public class CsvPrintExportWizardE4 extends CsvNameExportWizardE4{ |
|
17 |
|
|
18 |
@Inject |
|
19 |
public CsvPrintExportWizardE4(IEclipseContext context) { |
|
20 |
super(context); |
|
21 |
} |
|
22 |
|
|
23 |
@Override |
|
24 |
public void init() { |
|
25 |
configurator = CsvNameExportConfigurator.NewInstance(null,null); |
|
26 |
configurator.setNamesOnly(false); |
|
27 |
} |
|
28 |
|
|
29 |
@Override |
|
30 |
public CsvNameExportConfigurator getConfigurator() { |
|
31 |
return configurator; |
|
32 |
} |
|
33 |
|
|
34 |
@Override |
|
35 |
public void addPages() { |
|
36 |
//TODO create page with drop down menu for export for single classification. |
|
37 |
// super.addPages(); |
|
38 |
|
|
39 |
|
|
40 |
//standard page |
|
41 |
page = ExportToFileDestinationWizardPage.CsvPrint(configurator); |
|
42 |
|
|
43 |
addPage(page); |
|
44 |
} |
|
45 |
|
|
46 |
@Override |
|
47 |
public boolean performFinish() { |
|
48 |
String urlString = page.getFolderText() + File.separator |
|
49 |
+ page.getExportFileName(); |
|
50 |
|
|
51 |
configurator.setClassificationUUID(page.getSelectedClassificationUUID()); |
|
52 |
// create job |
|
53 |
Job job = CdmStore.getExportManager().createIOServiceJob(configurator, new File(urlString)); |
|
54 |
// configure the job |
|
55 |
job.setProperty(IProgressConstants.KEEP_PROPERTY, true); |
|
56 |
job.setUser(true); |
|
57 |
// schedule job |
|
58 |
job.schedule(); |
|
59 |
|
|
60 |
return true; |
|
61 |
} |
|
62 |
|
|
63 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/csv/print/OpenCsvPrintExportWizard.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2017 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
package eu.etaxonomy.taxeditor.io.e4.out.csv.print; |
|
10 |
|
|
11 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4; |
|
12 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractOpenExportWizard; |
|
13 |
|
|
14 |
/** |
|
15 |
* @author pplitzner |
|
16 |
* @since Oct 5, 2017 |
|
17 |
* |
|
18 |
*/ |
|
19 |
public class OpenCsvPrintExportWizard extends AbstractOpenExportWizard { |
|
20 |
|
|
21 |
/** |
|
22 |
* {@inheritDoc} |
|
23 |
*/ |
|
24 |
@Override |
|
25 |
protected Class<? extends AbstractExportWizardE4> getExportWizardClass() { |
|
26 |
return CsvPrintExportWizardE4.class; |
|
27 |
} |
|
28 |
|
|
29 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/dwca/DarwinCoreArchiveExportWizardE4.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2007 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
|
|
10 |
package eu.etaxonomy.taxeditor.io.e4.out.dwca; |
|
11 |
|
|
12 |
import java.io.File; |
|
13 |
|
|
14 |
import javax.inject.Inject; |
|
15 |
import javax.inject.Named; |
|
16 |
|
|
17 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
|
18 |
import org.eclipse.e4.core.di.annotations.Optional; |
|
19 |
import org.eclipse.e4.ui.services.IServiceConstants; |
|
20 |
import org.eclipse.jface.viewers.IStructuredSelection; |
|
21 |
import org.eclipse.jface.viewers.TreeSelection; |
|
22 |
|
|
23 |
import eu.etaxonomy.cdm.filter.TaxonNodeFilter; |
|
24 |
import eu.etaxonomy.cdm.io.dwca.out.DwcaTaxExportConfigurator; |
|
25 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
|
26 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4; |
|
27 |
import eu.etaxonomy.taxeditor.io.wizard.ExportToFileDestinationWizardPage; |
|
28 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
|
29 |
|
|
30 |
/** |
|
31 |
* |
|
32 |
* @author pplitzner |
|
33 |
* @since Oct 6, 2017 |
|
34 |
* |
|
35 |
*/ |
|
36 |
public class DarwinCoreArchiveExportWizardE4 extends |
|
37 |
AbstractExportWizardE4<DwcaTaxExportConfigurator> { |
|
38 |
|
|
39 |
private DwcaTaxExportConfigurator configurator; |
|
40 |
private ExportToFileDestinationWizardPage page; |
|
41 |
|
|
42 |
@Inject |
|
43 |
public DarwinCoreArchiveExportWizardE4(IEclipseContext context, |
|
44 |
@Optional@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection) { |
|
45 |
super(context, selection); |
|
46 |
} |
|
47 |
|
|
48 |
@Override |
|
49 |
public void init() { |
|
50 |
configurator = DwcaTaxExportConfigurator.NewInstance(null, null, null); |
|
51 |
if (selection instanceof TreeSelection && !selection.isEmpty()){ |
|
52 |
TaxonNode node = (TaxonNode)selection.getFirstElement(); |
|
53 |
if (node.getParent() == null){ |
|
54 |
configurator.setTaxonNodeFilter(TaxonNodeFilter.NewClassificationInstance(node.getClassification().getUuid())); |
|
55 |
}else{ |
|
56 |
configurator.setTaxonNodeFilter(TaxonNodeFilter.NewSubtreeInstance(node.getUuid())); |
|
57 |
} |
|
58 |
|
|
59 |
} |
|
60 |
} |
|
61 |
|
|
62 |
@Override |
|
63 |
public DwcaTaxExportConfigurator getConfigurator() { |
|
64 |
return configurator; |
|
65 |
} |
|
66 |
|
|
67 |
@Override |
|
68 |
public boolean performFinish() { |
|
69 |
String urlString = page.getFolderText() + File.separator |
|
70 |
+ page.getExportFileName(); |
|
71 |
|
|
72 |
|
|
73 |
CdmStore.getExportManager().runMoniteredOperation(configurator, urlString); |
|
74 |
return true; |
|
75 |
} |
|
76 |
|
|
77 |
@Override |
|
78 |
public void addPages() { |
|
79 |
page = ExportToFileDestinationWizardPage.Dwca(configurator); |
|
80 |
addPage(page); |
|
81 |
super.addPages(); |
|
82 |
} |
|
83 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/dwca/OpenDwcaExportWizard.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2017 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
package eu.etaxonomy.taxeditor.io.e4.out.dwca; |
|
10 |
|
|
11 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4; |
|
12 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractOpenExportWizard; |
|
13 |
|
|
14 |
/** |
|
15 |
* @author pplitzner |
|
16 |
* @since Oct 5, 2017 |
|
17 |
* |
|
18 |
*/ |
|
19 |
public class OpenDwcaExportWizard extends AbstractOpenExportWizard { |
|
20 |
|
|
21 |
/** |
|
22 |
* {@inheritDoc} |
|
23 |
*/ |
|
24 |
@Override |
|
25 |
protected Class<? extends AbstractExportWizardE4> getExportWizardClass() { |
|
26 |
return DarwinCoreArchiveExportWizardE4.class; |
|
27 |
} |
|
28 |
|
|
29 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/jaxb/JaxbExportWizardE4.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2007 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
|
|
10 |
package eu.etaxonomy.taxeditor.io.e4.out.jaxb; |
|
11 |
|
|
12 |
import java.io.File; |
|
13 |
|
|
14 |
import javax.inject.Inject; |
|
15 |
|
|
16 |
import org.eclipse.core.runtime.jobs.Job; |
|
17 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
|
18 |
import org.eclipse.ui.progress.IProgressConstants; |
|
19 |
|
|
20 |
import eu.etaxonomy.cdm.io.jaxb.JaxbExportConfigurator; |
|
21 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4; |
|
22 |
import eu.etaxonomy.taxeditor.io.wizard.ExportToFileDestinationWizardPage; |
|
23 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
|
24 |
|
|
25 |
/** |
|
26 |
* |
|
27 |
* @author pplitzner |
|
28 |
* @since Oct 6, 2017 |
|
29 |
* |
|
30 |
*/ |
|
31 |
public class JaxbExportWizardE4 extends AbstractExportWizardE4<JaxbExportConfigurator> { |
|
32 |
|
|
33 |
private ExportToFileDestinationWizardPage page; |
|
34 |
|
|
35 |
private JaxbExportConfigurator configurator; |
|
36 |
|
|
37 |
@Inject |
|
38 |
public JaxbExportWizardE4(IEclipseContext context) { |
|
39 |
super(context); |
|
40 |
} |
|
41 |
|
|
42 |
/** {@inheritDoc} */ |
|
43 |
@Override |
|
44 |
public void init() { |
|
45 |
this.setWindowTitle("JAXB Export"); |
|
46 |
this.configurator = CdmStore.getExportManager().JaxbConfigurator(); |
|
47 |
} |
|
48 |
|
|
49 |
/** {@inheritDoc} */ |
|
50 |
@Override |
|
51 |
public boolean performFinish() { |
|
52 |
boolean performFinish = false; |
|
53 |
|
|
54 |
File exportFile = new File(page.getFolderText() + File.separator + page.getExportFileName()); |
|
55 |
|
|
56 |
configurator.setDestination(exportFile); |
|
57 |
|
|
58 |
// create job |
|
59 |
Job job = CdmStore.getExportManager().createIOServiceJob(configurator, exportFile); |
|
60 |
// configure the job |
|
61 |
job.setProperty(IProgressConstants.KEEP_PROPERTY, true); |
|
62 |
job.setUser(true); |
|
63 |
// schedule job |
|
64 |
job.schedule(); |
|
65 |
|
|
66 |
performFinish = true; |
|
67 |
return performFinish; |
|
68 |
} |
|
69 |
|
|
70 |
/** {@inheritDoc} */ |
|
71 |
@Override |
|
72 |
public void addPages() { |
|
73 |
super.addPages(); |
|
74 |
|
|
75 |
page = ExportToFileDestinationWizardPage.Jaxb(configurator); |
|
76 |
addPage(page); |
|
77 |
} |
|
78 |
|
|
79 |
/** {@inheritDoc} */ |
|
80 |
@Override |
|
81 |
public JaxbExportConfigurator getConfigurator() { |
|
82 |
return configurator; |
|
83 |
} |
|
84 |
|
|
85 |
|
|
86 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/jaxb/OpenJaxbExportWizard.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2017 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
package eu.etaxonomy.taxeditor.io.e4.out.jaxb; |
|
10 |
|
|
11 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4; |
|
12 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractOpenExportWizard; |
|
13 |
|
|
14 |
/** |
|
15 |
* @author pplitzner |
|
16 |
* @since Oct 5, 2017 |
|
17 |
* |
|
18 |
*/ |
|
19 |
public class OpenJaxbExportWizard extends AbstractOpenExportWizard { |
|
20 |
|
|
21 |
/** |
|
22 |
* {@inheritDoc} |
|
23 |
*/ |
|
24 |
@Override |
|
25 |
protected Class<? extends AbstractExportWizardE4> getExportWizardClass() { |
|
26 |
return JaxbExportWizardE4.class; |
|
27 |
} |
|
28 |
|
|
29 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/sdd/OpenSddExportWizard.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2017 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
package eu.etaxonomy.taxeditor.io.e4.out.sdd; |
|
10 |
|
|
11 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4; |
|
12 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractOpenExportWizard; |
|
13 |
|
|
14 |
/** |
|
15 |
* @author pplitzner |
|
16 |
* @since Oct 5, 2017 |
|
17 |
* |
|
18 |
*/ |
|
19 |
public class OpenSddExportWizard extends AbstractOpenExportWizard { |
|
20 |
|
|
21 |
/** |
|
22 |
* {@inheritDoc} |
|
23 |
*/ |
|
24 |
@Override |
|
25 |
protected Class<? extends AbstractExportWizardE4> getExportWizardClass() { |
|
26 |
return SddExportWizardE4.class; |
|
27 |
} |
|
28 |
|
|
29 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/out/sdd/SddExportWizardE4.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2007 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
|
|
10 |
package eu.etaxonomy.taxeditor.io.e4.out.sdd; |
|
11 |
|
|
12 |
import java.io.File; |
|
13 |
|
|
14 |
import javax.inject.Inject; |
|
15 |
|
|
16 |
import org.eclipse.core.runtime.jobs.Job; |
|
17 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
|
18 |
import org.eclipse.ui.progress.IProgressConstants; |
|
19 |
|
|
20 |
import eu.etaxonomy.cdm.io.sdd.out.SDDExportConfigurator; |
|
21 |
import eu.etaxonomy.taxeditor.io.e4.out.AbstractExportWizardE4; |
|
22 |
import eu.etaxonomy.taxeditor.io.wizard.ExportToFileDestinationWizardPage; |
|
23 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
|
24 |
|
|
25 |
/** |
|
26 |
* |
|
27 |
* @author pplitzner |
|
28 |
* @since Oct 6, 2017 |
|
29 |
* |
|
30 |
*/ |
|
31 |
public class SddExportWizardE4 extends AbstractExportWizardE4<SDDExportConfigurator> { |
|
32 |
|
|
33 |
private ExportToFileDestinationWizardPage page; |
|
34 |
|
|
35 |
private SDDExportConfigurator configurator; |
|
36 |
|
|
37 |
@Inject |
|
38 |
public SddExportWizardE4(IEclipseContext context) { |
|
39 |
super(context); |
|
40 |
} |
|
41 |
|
|
42 |
/** {@inheritDoc} */ |
|
43 |
@Override |
|
44 |
public SDDExportConfigurator getConfigurator() { |
|
45 |
return configurator; |
|
46 |
} |
|
47 |
|
|
48 |
/** {@inheritDoc} */ |
|
49 |
@Override |
|
50 |
public boolean performFinish() { |
|
51 |
File file = new File(page.getFolderText() + File.separator + page.getExportFileName()); |
|
52 |
// create job |
|
53 |
Job job = CdmStore.getExportManager().createIOServiceJob(configurator, file); |
|
54 |
// configure the job |
|
55 |
job.setProperty(IProgressConstants.KEEP_PROPERTY, true); |
|
56 |
job.setUser(true); |
|
57 |
// schedule job |
|
58 |
job.schedule(); |
|
59 |
|
|
60 |
return true; |
|
61 |
} |
|
62 |
|
|
63 |
/** {@inheritDoc} */ |
|
64 |
@Override |
|
65 |
public void addPages() { |
|
66 |
super.addPages(); |
|
67 |
|
|
68 |
page = ExportToFileDestinationWizardPage.Sdd(configurator); |
|
69 |
addPage(page); |
|
70 |
} |
|
71 |
|
|
72 |
/** {@inheritDoc} */ |
|
73 |
@Override |
|
74 |
public void init() { |
|
75 |
this.setWindowTitle("SDD Export"); |
|
76 |
this.configurator = CdmStore.getExportManager().SddConfigurator(); |
|
77 |
} |
|
78 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/wizard/ExportToFileDestinationWizardPage.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.taxeditor.io.wizard; |
11 | 11 |
|
12 |
import java.awt.Checkbox; |
|
13 | 12 |
import java.text.SimpleDateFormat; |
14 | 13 |
import java.util.Calendar; |
15 | 14 |
import java.util.Collections; |
... | ... | |
17 | 16 |
import java.util.List; |
18 | 17 |
import java.util.UUID; |
19 | 18 |
|
20 |
import org.apache.commons.lang.StringUtils; |
|
21 | 19 |
import org.eclipse.jface.wizard.WizardPage; |
22 | 20 |
import org.eclipse.swt.SWT; |
23 | 21 |
import org.eclipse.swt.events.SelectionAdapter; |
... | ... | |
28 | 26 |
import org.eclipse.swt.widgets.Button; |
29 | 27 |
import org.eclipse.swt.widgets.Combo; |
30 | 28 |
import org.eclipse.swt.widgets.Composite; |
31 |
import org.eclipse.swt.widgets.Control; |
|
32 | 29 |
import org.eclipse.swt.widgets.DirectoryDialog; |
33 | 30 |
import org.eclipse.swt.widgets.Event; |
34 | 31 |
import org.eclipse.swt.widgets.Label; |
... | ... | |
41 | 38 |
import eu.etaxonomy.cdm.io.common.ExportConfiguratorBase; |
42 | 39 |
import eu.etaxonomy.cdm.io.csv.caryophyllales.out.CsvNameExportConfigurator; |
43 | 40 |
import eu.etaxonomy.cdm.io.csv.redlist.demo.CsvDemoExportConfigurator; |
44 |
import eu.etaxonomy.cdm.io.csv.redlist.out.CsvTaxExportConfiguratorRedlist; |
|
45 | 41 |
import eu.etaxonomy.cdm.io.dwca.out.DwcaTaxExportConfigurator; |
46 | 42 |
import eu.etaxonomy.cdm.io.jaxb.JaxbExportConfigurator; |
47 | 43 |
import eu.etaxonomy.cdm.io.sdd.out.SDDExportConfigurator; |
... | ... | |
86 | 82 |
|
87 | 83 |
public static final String CSV = "csv"; |
88 | 84 |
|
89 |
|
|
90 |
|
|
91 | 85 |
public static final String ZIP = "zip"; |
92 | 86 |
|
93 | 87 |
private boolean csvExport = false; |
94 | 88 |
|
95 | 89 |
private boolean csvNameExport = false; |
96 | 90 |
|
97 |
|
|
98 |
|
|
99 | 91 |
private boolean csvPrintExport = false; |
100 | 92 |
|
101 | 93 |
private boolean outputModelExport = false; |
... | ... | |
116 | 108 |
|
117 | 109 |
private Classification selectedClassification; |
118 | 110 |
private Label classificationLabel; |
119 |
|
|
111 |
|
|
120 | 112 |
private ExportConfiguratorBase configurator; |
121 | 113 |
private Button checkUseSelectedtaxonNode; |
122 | 114 |
|
123 | 115 |
private Button checkUseSelectedClassification; |
124 | 116 |
|
125 |
/** |
|
126 |
* @param pageName |
|
127 |
* @param selection |
|
128 |
*/ |
|
129 | 117 |
protected ExportToFileDestinationWizardPage(String pageName, String type, |
130 | 118 |
String title, String description, String extension, ExportConfiguratorBase configurator) { |
131 | 119 |
super(pageName); |
... | ... | |
147 | 135 |
case DWCA_EXPORT: |
148 | 136 |
dwcaExport = true; |
149 | 137 |
break; |
150 |
|
|
138 |
|
|
151 | 139 |
} |
152 | 140 |
this.extension = extension; |
153 | 141 |
this.setTitle(title); |
154 | 142 |
this.setDescription(description); |
155 | 143 |
} |
156 | 144 |
|
157 |
/** |
|
158 |
* <p> |
|
159 |
* Jaxb |
|
160 |
* </p> |
|
161 |
* |
|
162 |
* @return a |
|
163 |
* {@link eu.etaxonomy.taxeditor.io.wizard.ExportToFileDestinationWizardPage} |
|
164 |
* object. |
|
165 |
*/ |
|
166 | 145 |
public static ExportToFileDestinationWizardPage Jaxb(JaxbExportConfigurator configurator) { |
167 | 146 |
return new ExportToFileDestinationWizardPage( |
168 | 147 |
JAXB_EXPORT, |
... | ... | |
172 | 151 |
XML, configurator); |
173 | 152 |
} |
174 | 153 |
|
175 |
/** |
|
176 |
* <p> |
|
177 |
* Tcs |
|
178 |
* </p> |
|
179 |
* |
|
180 |
* @return a |
|
181 |
* {@link eu.etaxonomy.taxeditor.io.wizard.ExportToFileDestinationWizardPage} |
|
182 |
* object. |
|
183 |
*/ |
|
184 | 154 |
public static ExportToFileDestinationWizardPage Tcs(TcsXmlExportConfigurator config) { |
185 | 155 |
return new ExportToFileDestinationWizardPage( |
186 | 156 |
TCS_EXPORT, |
... | ... | |
190 | 160 |
XML, config); |
191 | 161 |
} |
192 | 162 |
|
193 |
/** |
|
194 |
* <p> |
|
195 |
* Sdd |
|
196 |
* </p> |
|
197 |
* |
|
198 |
* @return a |
|
199 |
* {@link eu.etaxonomy.taxeditor.io.wizard.ExportToFileDestinationWizardPage} |
|
200 |
* object. |
|
201 |
*/ |
|
202 | 163 |
public static ExportToFileDestinationWizardPage Sdd(SDDExportConfigurator config) { |
203 | 164 |
return new ExportToFileDestinationWizardPage( |
204 | 165 |
SDD_EXPORT, |
... | ... | |
208 | 169 |
XML, config); |
209 | 170 |
} |
210 | 171 |
|
211 |
/** |
|
212 |
* @return |
|
213 |
*/ |
|
214 | 172 |
public static ExportToFileDestinationWizardPage Dwca(DwcaTaxExportConfigurator config) { |
215 | 173 |
return new ExportToFileDestinationWizardPage( |
216 | 174 |
DWCA_EXPORT, |
... | ... | |
220 | 178 |
ZIP, config); |
221 | 179 |
} |
222 | 180 |
|
223 |
/** |
|
224 |
* @return |
|
225 |
*/ |
|
226 | 181 |
public static ExportToFileDestinationWizardPage OutputModel(CdmLightExportConfigurator config) { |
227 |
|
|
182 |
|
|
228 | 183 |
return new ExportToFileDestinationWizardPage( |
229 | 184 |
OUTPUT_MODEL_EXPORT, |
230 | 185 |
OUTPUT_MODEL_EXPORT, |
... | ... | |
233 | 188 |
CSV,config); |
234 | 189 |
} |
235 | 190 |
|
236 |
|
|
237 |
/** |
|
238 |
* @return |
|
239 |
*/ |
|
240 | 191 |
public static ExportToFileDestinationWizardPage Csv(CsvDemoExportConfigurator config) { |
241 |
|
|
192 |
|
|
242 | 193 |
return new ExportToFileDestinationWizardPage( |
243 | 194 |
CSV_EXPORT, |
244 | 195 |
CSV_EXPORT, |
... | ... | |
247 | 198 |
CSV, config); |
248 | 199 |
} |
249 | 200 |
|
250 |
/** |
|
251 |
* @return |
|
252 |
*/ |
|
253 | 201 |
public static ExportToFileDestinationWizardPage CsvNames(CsvNameExportConfigurator config) { |
254 |
|
|
202 |
|
|
255 | 203 |
return new ExportToFileDestinationWizardPage( |
256 | 204 |
CSV_NAME_EXPORT, |
257 | 205 |
CSV_NAME_EXPORT, |
... | ... | |
260 | 208 |
CSV, config); |
261 | 209 |
} |
262 | 210 |
|
263 |
/** |
|
264 |
* @return |
|
265 |
*/ |
|
266 | 211 |
public static ExportToFileDestinationWizardPage CsvPrint(CsvNameExportConfigurator config) { |
267 |
|
|
212 |
|
|
268 | 213 |
return new ExportToFileDestinationWizardPage( |
269 | 214 |
CSV_PRINT_EXPORT, |
270 | 215 |
CSV_NAME_EXPORT, |
... | ... | |
273 | 218 |
CSV, config); |
274 | 219 |
} |
275 | 220 |
|
276 |
/* |
|
277 |
* (non-Javadoc) |
|
278 |
* |
|
279 |
* @see |
|
280 |
* org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets |
|
281 |
* .Composite) |
|
282 |
*/ |
|
283 | 221 |
/** {@inheritDoc} */ |
284 | 222 |
@Override |
285 | 223 |
public void createControl(Composite parent) { |
... | ... | |
288 | 226 |
|
289 | 227 |
Composite composite = new Composite(parent, SWT.NONE); |
290 | 228 |
GridLayout gridLayout = new GridLayout(); |
291 |
|
|
229 |
|
|
292 | 230 |
gridLayout.numColumns = 2; |
293 | 231 |
TaxonNode node = null; |
294 |
|
|
232 |
|
|
295 | 233 |
composite.setLayout(gridLayout); |
296 | 234 |
if(classifications == null){ |
297 | 235 |
classifications = CdmStore.getService(IClassificationService.class).list(null, null, null, null, null); |
... | ... | |
312 | 250 |
if (!configurator.getTaxonNodeFilter().getClassificationFilter().isEmpty()){ |
313 | 251 |
selectedClassification = CdmStore.getService(IClassificationService.class).load(configurator.getTaxonNodeFilter().getClassificationFilter().get(0).getUuid()); |
314 | 252 |
}else{ |
315 |
|
|
253 |
|
|
316 | 254 |
selectedClassification = classifications.iterator().next(); |
317 | 255 |
} |
318 | 256 |
} |
319 | 257 |
|
320 | 258 |
|
321 | 259 |
if(csvExport || csvPrintExport || outputModelExport|| csvNameExport || dwcaExport){ |
322 |
// Label comboBoxLabel = new Label(composite, SWT.NONE); |
|
323 |
// comboBoxLabel.setText("Classification"); |
|
324 |
|
|
325 | 260 |
if ((outputModelExport || dwcaExport)&& !configurator.getTaxonNodeFilter().getSubtreeFilter().isEmpty()){ |
326 | 261 |
Composite selectNodeOrClassification = new Composite(composite, SWT.NONE); |
327 | 262 |
GridLayout grid = new GridLayout(); |
... | ... | |
362 | 297 |
selectedClassification = node.getClassification(); |
363 | 298 |
} |
364 | 299 |
createClassificationSelectionCombo(composite); |
365 |
|
|
300 |
|
|
366 | 301 |
classificationSelectionCombo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, |
367 | 302 |
true, false, 2, 1)); |
368 | 303 |
if (checkUseSelectedtaxonNode != null){ |
369 |
|
|
304 |
|
|
370 | 305 |
if (checkUseSelectedtaxonNode.getSelection()){ |
371 | 306 |
classificationSelectionCombo.setVisible(false); |
372 | 307 |
classificationLabel.setVisible(false); |
373 | 308 |
} |
374 | 309 |
} |
375 |
|
|
376 |
|
|
310 |
|
|
377 | 311 |
} |
378 |
|
|
379 | 312 |
|
380 | 313 |
Label folderLabel = new Label(composite, SWT.NONE); |
381 | 314 |
folderLabel.setText("Select Folder for exported files"); |
... | ... | |
397 | 330 |
button.setText("Browse..."); |
398 | 331 |
|
399 | 332 |
button.addSelectionListener(new SelectionAdapter() { |
400 |
/* |
|
401 |
* (non-Javadoc) |
|
402 |
* |
|
403 |
* @see |
|
404 |
* org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse |
|
405 |
* .swt.events.SelectionEvent) |
|
406 |
*/ |
|
407 | 333 |
@Override |
408 | 334 |
public void widgetSelected(SelectionEvent e) { |
409 | 335 |
super.widgetSelected(e); |
... | ... | |
417 | 343 |
} |
418 | 344 |
}); |
419 | 345 |
if (!outputModelExport){ |
420 |
|
|
346 |
|
|
421 | 347 |
Label fileLabel = new Label(composite, SWT.NONE); |
422 | 348 |
fileLabel.setText("File"); |
423 | 349 |
text_exportFileName = new Text(composite, SWT.BORDER); |
... | ... | |
451 | 377 |
return buffer.toString(); |
452 | 378 |
} |
453 | 379 |
|
454 |
/** |
|
455 |
* <p> |
|
456 |
* getExportFileName |
|
457 |
* </p> |
|
458 |
* |
|
459 |
* @return the exportFileName |
|
460 |
*/ |
|
461 | 380 |
public String getExportFileName() { |
462 | 381 |
return text_exportFileName.getText(); |
463 | 382 |
} |
464 | 383 |
|
465 |
/** |
|
466 |
* <p> |
|
467 |
* getFolderText |
|
468 |
* </p> |
|
469 |
* |
|
470 |
* @return the folderText |
|
471 |
*/ |
|
472 | 384 |
public String getFolderText() { |
473 | 385 |
return text_folder.getText(); |
474 | 386 |
} |
475 |
|
|
476 |
/** |
|
477 |
* <p> |
|
478 |
* getFolderComposite |
|
479 |
* </p> |
|
480 |
* |
|
481 |
* @return the folderText |
|
482 |
*/ |
|
387 |
|
|
483 | 388 |
public Text getFolderComposite() { |
484 | 389 |
return text_folder; |
485 | 390 |
} |
486 | 391 |
|
487 | 392 |
private void createClassificationSelectionCombo(Composite parent){ |
488 |
// classifications = CdmStore.getTaxonTreeService().list(null, null, null, null, null); |
|
489 | 393 |
|
490 | 394 |
Composite classificationSelection = new Composite(parent, SWT.NULL); |
491 | 395 |
classificationSelection.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 2, 1)); |
... | ... | |
496 | 400 |
classificationLabel = new Label(classificationSelection, SWT.NULL); |
497 | 401 |
// TODO not working is not really true but leave it here to remind everyone that this is under construction |
498 | 402 |
classificationLabel.setText("Export complete classification"); |
499 |
|
|
403 |
|
|
500 | 404 |
classificationSelectionCombo = new Combo(classificationSelection, SWT.BORDER | SWT.READ_ONLY); |
501 | 405 |
classificationSelectionCombo.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true, 2,1)); |
502 | 406 |
|
... | ... | |
543 | 447 |
return checkUseSelectedtaxonNode.getSelection(); |
544 | 448 |
} |
545 | 449 |
|
546 |
|
|
547 | 450 |
@Override |
548 | 451 |
public boolean canFlipToNextPage() { |
549 | 452 |
return getFolderText() != null; |
550 | 453 |
} |
551 |
|
|
552 |
|
|
553 |
|
|
554 | 454 |
|
555 | 455 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java | ||
---|---|---|
204 | 204 |
} else{ |
205 | 205 |
CdmPreference pref = getPreferenceFromDB(PreferencePredicate.ShowLifeForm); |
206 | 206 |
|
207 |
return Boolean.valueOf(pref.getValue());
|
|
207 |
return pref!=null?Boolean.valueOf(pref.getValue()):false;
|
|
208 | 208 |
} |
209 | 209 |
} |
210 | 210 |
|
... | ... | |
214 | 214 |
} else{ |
215 | 215 |
CdmPreference pref = getPreferenceFromDB(PreferencePredicate.DeterminationOnlyForFieldUnits); |
216 | 216 |
|
217 |
return Boolean.valueOf(pref.getValue());
|
|
217 |
return pref!=null?Boolean.valueOf(pref.getValue()):false;
|
|
218 | 218 |
} |
219 | 219 |
} |
220 | 220 |
|
eu.etaxonomy.taxeditor.workbench/fragment.e4xmi | ||
---|---|---|
23 | 23 |
<command href="../eu.etaxonomy.taxeditor.application/fragment.e4xmi#_RWLmQB62EeePLJ5to5QrXQ"/> |
24 | 24 |
</children> |
25 | 25 |
<children xsi:type="menu:MenuSeparator" xmi:id="_FaGnriQNEeen_7LZsZSNoA" elementId="eu.etaxonomy.taxeditor.application.menuseparator.1"/> |
26 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_FaGnqiQNEeen_7LZsZSNoA" elementId="eu.etaxonomy.taxeditor.application.handledmenuitem.import" label="%command.label.3" mnemonics="I"> |
|
27 |
<visibleWhen xsi:type="ui:CoreExpression" xmi:id="_FaGnqyQNEeen_7LZsZSNoA" coreExpressionId="isCdmStoreConnected"/> |
|
28 |
<command href="../eu.etaxonomy.taxeditor.application/fragment.e4xmi#_dlo3oB60EeePLJ5to5QrXQ"/> |
|
29 |
</children> |
|
30 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_FaGnrCQNEeen_7LZsZSNoA" elementId="eu.etaxonomy.taxeditor.application.handledmenuitem.export" label="%command.label.4" mnemonics="E"> |
|
31 |
<visibleWhen xsi:type="ui:CoreExpression" xmi:id="_FaGnrSQNEeen_7LZsZSNoA" coreExpressionId="isCdmStoreConnected"/> |
|
32 |
<command href="../eu.etaxonomy.taxeditor.application/fragment.e4xmi#_CYHrgB62EeePLJ5to5QrXQ"/> |
|
33 |
</children> |
|
34 | 26 |
<children xsi:type="menu:MenuSeparator" xmi:id="_FaGnsyQNEeen_7LZsZSNoA" elementId="eu.etaxonomy.taxeditor.application.filemenu.io"/> |
35 | 27 |
<children xsi:type="menu:HandledMenuItem" xmi:id="_FaGntCQNEeen_7LZsZSNoA" elementId="eu.etaxonomy.taxeditor.application.handledmenuitem.exit" label="%command.label.5" mnemonics="x"> |
36 | 28 |
<visibleWhen xsi:type="ui:CoreExpression" xmi:id="_FaGntSQNEeen_7LZsZSNoA" coreExpressionId="isCdmStoreConnected"/> |
Also available in: Unified diff
ref #7008 Migrate export wizards