Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gendoc » context model element
context model element [message #1758432] Tue, 28 March 2017 15:47 Go to next message
samuel kallmeyer is currently offline samuel kallmeyerFriend
Messages: 47
Registered: March 2017
Member
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 16:51 Go to previous messageGo to next message
Anne HAUGOMMARD is currently offline Anne HAUGOMMARDFriend
Messages: 13
Registered: October 2013
Junior Member
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 18:43 Go to previous message
samuel kallmeyer is currently offline samuel kallmeyerFriend
Messages: 47
Registered: March 2017
Member
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: Thu Apr 25 12:16:37 GMT 2024

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

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

Back to the top