Project

General

Profile

« Previous | Next » 

Revision ad042feb

Added by Patrick Plitzner almost 5 years ago

ref #7837 Add docx export to feature tree context menu

View differences:

eu.etaxonomy.taxeditor.cdmlib/.classpath
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<classpath>
3
	<classpathentry exported="true" kind="lib" path="lib/docx4j-3.3.5.jar"/>
3 4
	<classpathentry exported="true" kind="lib" path="lib/commons-math3-3.6.1.jar"/>
4 5
	<classpathentry exported="true" kind="lib" path="lib/org.swtchart_0.10.0.v20160212.jar"/>
5 6
	<classpathentry exported="true" kind="lib" path="lib/redmine-java-api-3.1.0.jar"/>
eu.etaxonomy.taxeditor.cdmlib/META-INF/MANIFEST.MF
75 75
 eu.etaxonomy.cdm.io.csv.redlist.demo,
76 76
 eu.etaxonomy.cdm.io.csv.redlist.out,
77 77
 eu.etaxonomy.cdm.io.descriptive.owl.out,
78
 eu.etaxonomy.cdm.io.descriptive.word.out,
78 79
 eu.etaxonomy.cdm.io.distribution.excelupdate,
79 80
 eu.etaxonomy.cdm.io.dwca.in,
80 81
 eu.etaxonomy.cdm.io.dwca.jaxb,
......
873 874
 lib/lucene-suggest-5.4.1.jar,
874 875
 lib/redmine-java-api-3.1.0.jar,
875 876
 lib/org.swtchart_0.10.0.v20160212.jar,
876
 lib/commons-math3-3.6.1.jar
877
 lib/commons-math3-3.6.1.jar,
878
 lib/docx4j-3.3.5.jar
877 879
Import-Package: eu.etaxonomy.cdm.api.application
eu.etaxonomy.taxeditor.cdmlib/build.properties
224 224
               lib/cdmlib-cache-5.5.0-SNAPSHOT.jar,\
225 225
               lib/redmine-java-api-3.1.0.jar,\
226 226
               lib/org.swtchart_0.10.0.v20160212.jar,\
227
               lib/commons-math3-3.6.1.jar
227
               lib/commons-math3-3.6.1.jar,\
228
               lib/docx4j-3.3.5.jar
228 229

  
229 230
jars.compile.order = .
230 231
output.. = bin/
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/handler/FeatureTreeExportHandler.java
25 25
import org.eclipse.swt.widgets.Shell;
26 26
import org.eclipse.ui.progress.IProgressConstants;
27 27

  
28
import eu.etaxonomy.cdm.io.descriptive.owl.out.OwlExportConfigurator;
28
import eu.etaxonomy.cdm.io.descriptive.word.out.WordExportConfigurator;
29 29
import eu.etaxonomy.cdm.model.description.FeatureTree;
30 30
import eu.etaxonomy.taxeditor.featuretree.e4.FeatureNodeDropAdapter;
31 31
import eu.etaxonomy.taxeditor.featuretree.e4.FeatureTreeEditor;
......
60 60
        String directoryString = dialog.open();
61 61
        if(directoryString!=null){
62 62
            // create job
63
            Job job = CdmStore.getExportManager().createIOServiceJob(OwlExportConfigurator.NewInstance(null, null, selectedFeatureTree), new File(directoryString+"/owl.owl"));
63
            Job job = CdmStore.getExportManager().createIOServiceJob(WordExportConfigurator.NewInstance(null, null, selectedFeatureTree), new File(directoryString+"/"+selectedFeatureTree.getTitleCache()+".docx"));
64 64
            // configure the job
65 65
            job.setProperty(IProgressConstants.KEEP_PROPERTY, true);
66 66
            job.setUser(true);

Also available in: Unified diff