|
Re: Programmatically adding elements to a Representation [message #1702334 is a reply to message #1702209] |
Tue, 21 July 2015 15:31 |
|
Hi Lukas,
Are you based on your own modeler or are you using Ecore-tools ?
The Ecore-tools diagram elements are “unsynchronized” (this option can
be specified for each mapping in the *.odesign ) . That means the
representation elements have to be manually added by using the palette
tools.
Regards,
Florian
On 07/20/2015 07:37 PM, Lukas Meier wrote:
> Hi all,
>
> I have an ECore-Model and a Representation. When I programmatically
> manipulate the model, these changes should also be shown in the
> Representation.
> For EReferences, EAttributes, etc. this works fine by default. But for
> children of EPackages (like EClass or EPackage) the elements are created
> in the model, but not shown in the Representation. I have to add them
> manually using the editor. It's the same way when the elements in the
> model are created manually.*
>
> Is there a way to programmatically create representation elements for
> elements added to the model?
>
> Thank you
> Lukas
>
> *I edited the model in the tree editor, saved it and hit the
> refresh-button in the Representation.
--
Florian - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.24327 seconds