|
Re: Automatically add model to project dependencies [message #1729335 is a reply to message #1729247] |
Wed, 13 April 2016 08:05 |
|
Le 12/04/2016 14:12, Amine Kechaou a écrit :
> Hi,
Hi
>
> I'm currently creating a graphical editor using Sirius. In the the
> representation I can add a Method and choose its return type in the
> Properties tab. Thing is the return type depends on some model that is
> not automatically loaded in the Modelling Project. Thus the return types
> won't show in the list in the Properties tab.
> When I go to the corresponding tree editor, I can easily add the return
> type in the Properties tab. By doing so, a dependency is added to the
> Project Dependencies, containing my return types and when I go back to
> the representation all return types are then available in the list. My
> question now : How to automatically add dependencies when I select my
> Viewpoint ?
When defining your RepresentationDescription in your odesign, make sure
that all required meta-models(and thus your MM defining the return type
Class) are declared as metamodels. This help sirius in many feature to
work better and faster. [1]
>
> Thank you
[1]
http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.sirius.doc%2Fdoc%2Fspecifier%2Fgeneral%2FSpecifying_Viewpoints.html&cp=69_2_0_2&anchor=vsp
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Automatically add model to project dependencies [message #1729387 is a reply to message #1729380] |
Wed, 13 April 2016 15:26 |
|
Le 13/04/2016 16:15, Amine Kechaou a écrit :
> Hi, thanks but it didn't work as expected. I added the metamodel via the
> properties tab of my diagram description but the return types still
> don't show up in the editor and the dependencies aren't automatically
> added.
>
Add the metamodel you use as a dependency of your VSP. It helps Sirius
to better find or restraint the metamodel used for completion,
validation and runtime.
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03738 seconds