Skip to main content


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 15:10 Go to next message
nicolas nusswitz is currently offline nicolas nusswitzFriend
Messages: 5
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 09: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 14:52 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior 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 15:46 Go to previous message
Charlie Mordant is currently offline Charlie MordantFriend
Messages: 88
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: Tue Apr 16 08:00:45 GMT 2024

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

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

Back to the top