Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gendoc » Run Gendoc template on a model object passed from code
Run Gendoc template on a model object passed from code [message #1847851] Wed, 10 November 2021 12:48 Go to next message
Denis Nikiforov is currently offline Denis NikiforovFriend
Messages: 343
Registered: August 2013
Senior Member
Hi

Is it possible not to hard-code path to the input model in a template? For example how can I implement an Eclipse command which generates a document for a currently selected object in a model explorer?
Re: Run Gendoc template on a model object passed from code [message #1847857 is a reply to message #1847851] Wed, 10 November 2021 14:31 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Hi,
yes it is possible, you can override by code the way models and elements are loaded you can find examples there :
- https://github.com/opcoach/gendocIntegration/blob/master/com.opcoach.gendoc/src/com/opcoach/gendoc/GenerateDocumentHandler.java (line 109 to change EMFModelLoaderService)
- https://git.eclipse.org/c/gendoc/org.eclipse.gendoc.git/tree/plugins/org.eclipse.gendoc.wizard.papyrus/plugin.xml (how you can use extension point to run generation on elements)




Re: Run Gendoc template on a model object passed from code [message #1847859 is a reply to message #1847857] Wed, 10 November 2021 14:48 Go to previous message
Denis Nikiforov is currently offline Denis NikiforovFriend
Messages: 343
Registered: August 2013
Senior Member
Thanks a lot! Great example!
Previous Topic:Generate Excel file with multiple worksheets
Next Topic:Issue with GenDoc on Papyrus 5.2 Windows
Goto Forum:
  


Current Time: Thu Feb 22 11:10:30 GMT 2024

Powered by FUDForum. Page generated in 0.02012 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top