|
|
Re: Representing nodes from imported model [message #1384842 is a reply to message #1384822] |
Mon, 02 June 2014 13:29 |
|
Le 02/06/2014 13:07, Wilbert Alberts a écrit :
> Hi,
Hi,
>
> I've created two metamodels. One metamodel (called 'interfaces') allows
> definition of interfaces with their operations. The other metamodel
> (called 'components') allows the definition of components. A component
> might provide or require interfaces (as defined in the 'interfaces'
> metamodel).
>
> Using EMFText, I have a textual editor for interfaces models. For
> components, I would like to realize a Sirius based graphical editor. It
> should allows the creation of components and associating them with
> interfaces (defined in other interface models). I'm not necesarily
> interested in the ability to edit interface models from the graphical
> editor.
>
> I created an example consisting of a component and two interfaces. I
> succeed in visualising the component. However, I don't succeed in
> visualizing the associated interfaces. Is there something special to be
> done when model elements are originating from a different resource?
It seems you should improve the semantic candidates expression of your
interface mapping. I see too possibilities: an empty expression (Sirius
should look into all semantic resources of the session for element which
are instances of the mapping's domain class), or create a Java service
to subtly retrieve the associated interface from the diagram/container
semantic element.
>
> Any clue?
>
> Greetings,
> Wilbert.
>
>
>
>
>
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03306 seconds