|Re: Diagram not showing model elements from imported models [message #1220357 is a reply to message #1220313]
||Wed, 11 December 2013 09:43
| Maxime Porhel
Registered: July 2009
Le 11/12/2013 05:52, Michael Lukaszczyk a écrit :|
> Hey there!
> I´m playing around with sirius and I have some problems with the diagram
First of all, thanks for your interest in Sirius.
When I load a model as a dependency and want to inspect
> it with a Designer representation it won´t show any elements in the
> diagram. When I add for example an extra class in the Diagram view, the
> model gets extended properly. Also, when I´m reopening the diagram view
> the newly added class appears so it seems that the references to the
> before existing model elements are missing. Class-Table representation
> works fine ands shows all model elements.
> Am I missing something or is this a known issue?
Could you precise which Viewpoint and DiagramDescription are concerned ?
I think you are using the sampe Design Viewpoint and its package
If you use the sample Design Viewpoint and its package entities diagram,
the semantic candidates expressions on the class mapping 'EC EClass'
only looks for direct children of the current package, its smeantic
candidates expression is [eClassifiers->filter(ecore::EClass)/]. So if
you create an EClass with the tool, it will be dispalyed, but the EClass
which are contained in the loaded model will not.
If you activate the 'Package layer', two new mappings will be inspected
to display packages:
. Design Package (semantic candidates expression:
[eContents(EPackage)/]) to display the children packages (recursively
with contained classes and packages at each level).
. Dropped Package (no semantic candidates and not synchronized) to
display the dropped packages.
If you want to display the package and classes from your loaded model,
you can simply drag and drop the (root) loaded packages on your entities
diagram after the activation of the Package layer.
You will find some information about these unsynchronized Entities
diagrams in Help Contents > Ecore Modeler > Ecore Designer User Guide >
Support for unsynchronized Entities diagrams.
> Best regards,
Powered by FUDForum
. Page generated in 0.10391 seconds