Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Diagram Description with more than one sematic model
icon3.gif  Diagram Description with more than one sematic model [message #1374291] Thu, 22 May 2014 11:10 Go to next message
nicolas nusswitz is currently offline nicolas nusswitz
Messages: 3
Registered: May 2014
Junior Member
Hi,

I've three semantic models (ecore) in my project.
I build a diagram description.
I would use selection wizard descrption to load a property of selected element.
Problem :the elements displayed in selection wizard description doesn't stored in a same model that selected element.

How can i access at these elements in Candidates Expression field?

thank,

[Updated on: Fri, 23 May 2014 05:47]

Report message to a moderator

Re: Diagram Description with more than one sematic model [message #1376723 is a reply to message #1374291] Fri, 23 May 2014 10:52 Go to previous messageGo to next message
Florian Barbin is currently offline Florian Barbin
Messages: 31
Registered: August 2010
Member
Hi,

Can you unfold your ecore semantic models directly from the model
explorer view ? If it's possible that means your resources are loaded in
the Sirius Session resourceset and you should be able to access them. I
suggest you to use a java service (see
http://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#specialized
and
http://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#service_methods
to implement and use a java service). In this service you could get to
the resourceset starting from the selected element for instance.

Regards,

Florian

On 05/22/2014 09:06 PM, nicolas nusswitz wrote:
> Hi,
>
> I've three semantic models (ecore) in my project.
> I build a diagram description.
> I would use selection wizard descrption to load a property of selected
> element.
> Problem : elements displayed in selection wizard descrption don't stored
> in a same model that selected element.
>
> Problem :the elements displayed in selection wizard description doesn't
> stored in a same model that selected element.
>
> How can i access at these elements in Candidates Expression field?
>
> thank,
>
>
Re: Diagram Description with more than one sematic model [message #1376823 is a reply to message #1376723] Fri, 23 May 2014 11:46 Go to previous message
Charlie Mordant is currently offline Charlie Mordant
Messages: 81
Registered: July 2010
Member

Hi Nicolas,

You can fill the 'Metamodels' section of the viewpoint Representation mapping.
As an addition, you can also use the 'Load resource' context menu on the viewpoint editor to load your m2.
With this, you should see your mappings.

Hope it helped.

Charlie
Previous Topic:An exception stack trace is not available.
Next Topic:Sirius Moving a NodeCreationDescription
Goto Forum:
  


Current Time: Fri Aug 29 04:21:42 EDT 2014

Powered by FUDForum. Page generated in 0.01959 seconds