Hi,
I would like to embed GenDoc2 in a RCP application.
From a contextual action (Eclipse Handler), I would like to be able to
generate a Docx or ODT file with images.
The input parameters for the template would be :
* model: EObject (the root object of my model)
* diagrams: IFile[] (the list of GMF diagrams to convert into
images) -> I know I could develop a service to extend GMFServices here
* genPath: String (the absolute path of the destination folder where
to create the result)
After investigating a little in the source code taken from Gforge. It
appears that I need a "File" to represent my template as input.
But, my template "Template.docx" must be inside a bundle of my RCP
application (in a jar). So, I would need to be able to give an URL like
"bundle://".
GendocProcess gendocProcess = new GendocProcess();
String resultFile =
gendocProcess.runProcess(currentFile.getLocation().toFile());
Could you help me to make it possible ? How can I give all these input
parameters dynamically and not put them in the template ?
Regards,
--
Sylvain Dudoit
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users