This service is archived, please use www.eclipse.org/forums


Home » Capella » Capella Studio » No Element's specialized sections in xhtml generation
No Element's specialized sections in xhtml generation [message #3251] Sat, 01 June 2019 02:11 Go to next message
dsryzhov.gmail.com is currently offline  dsryzhov.gmail.com
Messages: 80
Registered: February 2015
Member
I am learning Capella and Kitalpha DocGen functionality with the purpose
of html generation customization.

By some reason result of html generation is different
when XHTML Capella DocGen is installed from updatesite (1.3.0)
and when build from sources (master branches from kitalpha and capella git repositories).

To build and install plugins from sources
I've imported Capella and Kitalpha DocGen plugin projects into CapellaStudio.
and run second eclipse runtime to test plugins in action.

Before that I've removed this plugins from CapellaStudio installation manually. (deleted from plugins directory)

In the result html there are no standart sections of html documents.
For examples in Function documentation there are no section with Functional ports.
There are only very basic sections in all htmls for all element types.
There are no specialized sections for elements.

I've debuged code generated from JET patterns.
Code that produce specialized sections is executed correctly
and specialized sections are added to stringbuffers.

But after that they are not added to result html documents.

All method_content functions are ended by the following line
new Node.DataLeaf(ictx.getNode(), getClass(), "content", stringBuffer.toString());
As I understand stringbuffers for elements are added to some structure.
By some reason content for specialized sections from this structure is not used
when content is saved to html.

What can be the reason of this behaviour?
Re: No Element's specialized sections in xhtml generation [message #3253 is a reply to message #3251] Sun, 02 June 2019 00:24 Go to previous messageGo to next message
dsryzhov.gmail.com is currently offline  dsryzhov.gmail.com
Messages: 80
Registered: February 2015
Member
Have build xhtml docgen plugin from sources using maven.
Have build two versions 1.3.0 (from mater git branch) and 1.3.1 (from 1.3.x branch).
Tried to install build updatesite to Capella 1.3.0 and Capella 1.3.1 (last stable version)
The result is the same in all cases.
Only base sections in html for model elements are generated.
And no specialized sections are generated.
Re: No Element's specialized sections in xhtml generation [message #3254 is a reply to message #3253] Sun, 02 June 2019 00:52 Go to previous message
dsryzhov.gmail.com is currently offline  dsryzhov.gmail.com
Messages: 80
Registered: February 2015
Member
Success!
Have build xhtml plugins from master branch commit 936d6ea.
It's the last commit in master branch that works with Capella 1.3.0

Previous Topic: Capella project -> ecore -> generation stubs for new viewpoint
Next Topic: Hide extension elements from "Add capella element..." menu
Goto Forum:
  


Current Time: Sat Mar 28 04:31:19 EST 2020

Total time taken to generate the page: 0.00794 seconds