|
Re: Why are .ecore models loaded into each session resource set? [message #1480570 is a reply to message #1480539] |
Thu, 20 November 2014 09:39 |
|
Le 20/11/2014 10:07, Felix Dorner a écrit :
> Hi,
Hi
>
> When I look at a session ResourceSet at runtime, I note that its
> resources include all our semantic models. Do I understand correctly
> that each session resource set loads in a copy of the semantic ecore
> models? Why is that needed? Wouldn't it be sufficient to just rely on
> the global package registry which already provides access to the
> required semantic EPackages?
>
> Felix
I think that you reference your meta-model in your VSM (.odesign file).
So when EMF loads your VSM, it also loads your meta-model.
The problem is that the metamodel "references" are stored with a href (a
link to the root of the MM). A better solution would be to only store a
String attribute that Sirius interprets when needed.
Regards,
Laurent
--
Laurent - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Why are .ecore models loaded into each session resource set? [message #1781789 is a reply to message #1781680] |
Tue, 13 February 2018 10:30 |
|
Hi,
You called SessionManager.INSTANCE.getSession() which created the session but did not open it.
You now need to open the session, for example: session.open(new NullProgressMonitor();
Note that you might also directly ask the SessionManager to create and open the session: session = SessionManager.INSTANCE.openSession(representationsFileURI, new NullProgressMonitor(), SiriusEditPlugin.getPlugin().getUiCallback());
Regards,
or after
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Why are .ecore models loaded into each session resource set? [message #1781790 is a reply to message #1781680] |
Tue, 13 February 2018 10:30 |
|
Hi,
You called SessionManager.INSTANCE.getSession() which created the session but did not open it.
You now need to open the session, for example: session.open(new NullProgressMonitor();
Note that you might also directly ask the SessionManager to create and open the session: session = SessionManager.INSTANCE.openSession(representationsFileURI, new NullProgressMonitor(), SiriusEditPlugin.getPlugin().getUiCallback());
Regards,
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Re: Why are .ecore models loaded into each session resource set? [message #1781791 is a reply to message #1781680] |
Tue, 13 February 2018 10:31 |
|
Hi,
You called SessionManager.INSTANCE.getSession() which created the session but did not open it.
You now need to open the session, for example: session.open(new NullProgressMonitor();
Note that you might also directly ask the SessionManager to create and open the session: session = SessionManager.INSTANCE.openSession(representationsFileURI, new NullProgressMonitor(), SiriusEditPlugin.getPlugin().getUiCallback());
Regards,
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03850 seconds