Skip to main content



      Home
Home » Eclipse Projects » Gendoc » context model element
context model element [message #1758432] Tue, 28 March 2017 11:47 Go to next message
Eclipse UserFriend
Hello,
I'm wondering what the element field stands for within the context model.
As far as I understand, it's possible to link to specific item of a model (ie a use case diagram by its {folder}/{name})

index.php/fa/28894/0/

I checked the gendoc documentation, but didn't find a proper example.
Could someone provide me additional information's about this ?

Samuel
Re: context model element [message #1758438 is a reply to message #1758432] Tue, 28 March 2017 12:51 Go to previous messageGo to next message
Eclipse UserFriend
Hello Samuel,

"element" attribute of context tag represents the path to the model element used as execution context of the following <gendoc> script tags.

If you use element="RootElement/Actor1" , and add a gendoc script to display the name of current element,
<gendoc> name : [self.name/]</gendoc>
you will get the following result:
name : Actor1


Concerning diagrams, it works on a different way because with Papyrus UML diagrams are not stored in the same model file than the UML elements, so the display of diagrams is performed through an access to the UML model element containing the diagram (in your example, "RootElement" for both diagrams) and using the method to get diagrams on an element : getPapyrusDiagrams from "papyrus" bundle in your case.

Anne
Re: context model element [message #1758449 is a reply to message #1758438] Tue, 28 March 2017 14:43 Go to previous message
Eclipse UserFriend
Hello Anne,
Thanks for this clarification.

Samuel
Previous Topic:Usage of multiple templates
Next Topic:Create gendoc for compiled ecore model
Goto Forum:
  


Current Time: Tue Jul 08 05:28:10 EDT 2025

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

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

Back to the top