Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to display an element outcoming from a foreign model (resource)
How to display an element outcoming from a foreign model (resource) [message #1719984] Wed, 13 January 2016 15:19 Go to next message
Orso-Manuel Picon is currently offline Orso-Manuel PiconFriend
Messages: 6
Registered: August 2015
Junior Member
Good evening,

I need to show on a sirius diagram elements that come from two different models.
I guess that is possible - maybe by calling the method eResource() in the 'Semantic Candidates Expression', but I don't even know how to use this method.

Any idea about the way to call to external resources in the 'Semantic Candidates Expression' ?

Thank you in advance,

OM
Re: How to display an element outcoming from a foreign model (resource) [message #1720420 is a reply to message #1719984] Mon, 18 January 2016 14:33 Go to previous message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 195
Registered: June 2010
Senior Member
Hi OM,

AFAIK:

Assuming that you associated the 'two different models' with the same representation file, the default behavior (by not filling in anything in the semantic candidates expression) is to explore every associated model and take any element of the corresponding type and visualize it. In that case, your problem is not how to get to the other models, but to limit showing too much.

As an alternative, you can always write a small java service, based on an arbitrary model element, that investigates any other model you'd like and return the desired candidate elements. This java service should be invoked from the semantic candidates expression.

Greetings,
Wilbert.
Previous Topic:How to rearrange elements in the representation graphical view
Next Topic:Suppressing default validation messages
Goto Forum:
  


Current Time: Wed Jan 20 02:32:12 GMT 2021

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

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

Back to the top