Bug 499604 - [Papyrus] new method in Papyrus bundle to replace linked elements
Summary: [Papyrus] new method in Papyrus bundle to replace linked elements
Status: UNCONFIRMED
Alias: None
Product: Gendoc
Classification: Modeling
Component: Others (show other bugs)
Version: 0.6.0   Edit
Hardware: PC Windows 7
: P3 enhancement
Target Milestone: 1.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-12 08:44 EDT by Jan Celmer CLA
Modified: 2016-11-25 12:01 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Celmer CLA 2016-08-12 08:44:24 EDT
Add a new method to the Papyrus bundle in order to get the linked elements. The idea would be introduce the method:

String replaceLinksByNameOrLabel (String body, Element context)

 This method will replace each occurence of {@link #... } by :
 - its name if it is a NamedElement
 - the result of gendoc getLabel operation otherwise

And a use case example with comment type:

[for (c:Comment | p.ownedComment)]
 [c._body.replaceLinksByNameOrLabel(c) /]
 [/for]
Comment 1 Eclipse Genie CLA 2016-08-19 12:08:40 EDT
New Gerrit change created: https://git.eclipse.org/r/79361