Skip to main content



      Home
Home » Eclipse Projects » Sirius » [Solved] Distinguish child nodes from imported nodes on diagram
[Solved] Distinguish child nodes from imported nodes on diagram [message #1597842] Mon, 02 February 2015 10:50 Go to next message
Eclipse UserFriend
Hi,

I created a project that allows visualization of a DomainModel containing Entities. The diagram itself represents the DomainModel.

The project allows Entities, contained in an other DomainModel to be dragged upon a DomainModel. This resembles importing an Entity from another DomainModel.

I like to distinguish the imported Entities from the actual children (of the DomainModel). I thought that this was best done by including a conditional mapping for the Entities. Entities originating from a different DomainModel then the one they are drawn upon should be rendered differently.

How can I test this (e.g. the guard of the conditional mapping)?

Something like: [eContainer(DomainModel) <> view.eContainer(DDiagram).semanticElement/]

Greetings,
Wilbert.

[Updated on: Tue, 03 February 2015 03:00] by Moderator

Re: Distinguish child nodes from imported nodes on diagram [message #1598872 is a reply to message #1597842] Tue, 03 February 2015 03:00 Go to previous message
Eclipse UserFriend
Found it: the expression is: [ view.eContainer().oclAsType(DSemanticDiagram).target <>self.eContainer(DomainModel) /]
Previous Topic:Adding elements dynamically
Next Topic:AcceleoEvaluationException: Unresolved compilation error in generation module
Goto Forum:
  


Current Time: Sun May 18 19:54:54 EDT 2025

Powered by FUDForum. Page generated in 0.03499 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top