Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Semantic candidates/precondition expressions for mapping imports
Semantic candidates/precondition expressions for mapping imports [message #1719815] Tue, 12 January 2016 09:44 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Hi,

When I use a mapping import, do I need to re-specify the semantic
candidates expression/precondition expressions in the import? Will
Sirius just fallback to the expressions of the imported mapping if I
leave the fields unset?

Thanks,
Felix
Re: Semantic candidates/precondition expressions for mapping imports [message #1720825 is a reply to message #1719815] Thu, 21 January 2016 09:59 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
Hi Felix,

sorry for the delay :-)

The container mapping import and the node mapping import use their own
semantic candidate expressions and preconditions (they do not delegate
to the imported mapping if no expression is specified). That means if
noting is set, the semantic candidate expression will be interpreted as
"eContent()" by default.
It's not the case for the domain class that is delegated to the imported
mapping if none is set.

Regards,

--
Florian - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Semantic candidates/precondition expressions for mapping imports [message #1720829 is a reply to message #1720825] Thu, 21 January 2016 10:13 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
it's eAllContent() over all the resourceSet if the semantic candidate
expression is empty (not eContent())

On 01/21/2016 10:59 AM, Florian Barbin wrote:
> Hi Felix,
>
> sorry for the delay :-)
>
> The container mapping import and the node mapping import use their own
> semantic candidate expressions and preconditions (they do not delegate
> to the imported mapping if no expression is specified). That means if
> noting is set, the semantic candidate expression will be interpreted as
> "eContent()" by default.
> It's not the case for the domain class that is delegated to the imported
> mapping if none is set.
>
> Regards,
>


--
Florian - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Semantic candidates/precondition expressions for mapping imports [message #1721001 is a reply to message #1720829] Fri, 22 January 2016 11:43 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
On 21-Jan-16 11:13, Florian Barbin wrote:
> it's eAllContent() over all the resourceSet if the semantic candidate
> expression is empty (not eContent())

I see, so this too needs to be repeated.

Thanks,
Felix
Previous Topic:Enable layer programatically
Next Topic:Style customization for edge stroke colour
Goto Forum:
  


Current Time: Thu Apr 25 19:22:54 GMT 2024

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

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

Back to the top