element first occurence page number [message #1758509] |
Wed, 29 March 2017 09:11  |
Eclipse User |
|
|
|
Hi experts !
I need to refer in my generated document the page number of some elements where they appear for the first time (they can appear multiple times in the document)
For example, en element 'X' appears the first time on the second page of the generated document. I want to display this page number everytime this element 'X' reappear elsewhere in the document
Is it possible to do this ? Or is it possible to store the page number of the first occurence of each element somewhere and use it during the generation to create the link?
|
|
|
|
|
|
|
Re: element first occurence page number [message #1760345 is a reply to message #1759646] |
Wed, 26 April 2017 03:58   |
Eclipse User |
|
|
|
Hi,
Thanks for your reply
I checked the existing code on http://git.eclipse.org/c/gendoc/org.eclipse.gendoc.git/tree/plugins/org.eclipse.gendoc.bundle.acceleo.papyrus
In my Template document, i set the expression: [query public div(r1 : Real, r2 : Real) : Real = invoke('[package]','div(java.lang.Double, java.lang.Double)', Sequence{r1, r2}) /]
[div(2.1,1.7)/]
The [package] is the package of my Class of course.
I created the div method in my class:
public Double div(Double r1, Double r2){
return r1/r2;
}
(The Class is an existing Class containing some others méthods which are not used by Javaservice)
When i generate the document with Gendoc, nothing is returned. Is there an Eclipse plugin to install in order to use Javaservice, or do i forget something important in my code ?
|
|
|
|
|
|
Re: element first occurence page number [message #1761027 is a reply to message #1760806] |
Fri, 05 May 2017 07:50  |
Eclipse User |
|
|
|
Hi.
Thanks for your reply.
Unfortunately,i'm an intern and today is my last day.
I will transfer all documentations i found about Javaservice, in particular this topic, for the next experts who will work on in the company.
Thanks a lot for your help. I wil mention this forum (the community) for the appreciations in my report.
Regards,
Geoffrey
[Updated on: Fri, 05 May 2017 07:52] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.05865 seconds