Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » how to remove the EReference in my Ecore Diagram
how to remove the EReference in my Ecore Diagram [message #897545] Tue, 24 July 2012 13:14 Go to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
hi all,


i have build an ecore diagram when i want to join 2 Eclasses using an Ereference arrow i must give a name a lower and upper bound to that arrow. it is not possible to use the arrow without giving any name to that , like in UML you can link to class without giging a name to the arrow linker, i have try to remove the name nad validate it , but many errors appears. i want to remove the name because after generating my genmodel from an Ecore the generated DSL grammar from that genmodel add that arrow name to my DSL grammar and i don't want that.

any contribution will be appreciate.

Best regards,
Frank
Re: how to remove the EReference in my Ecore Diagram [message #897550 is a reply to message #897545] Tue, 24 July 2012 13:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Frank,

Comments below.

On 24/07/2012 3:14 PM, frank fotso wrote:
> hi all,
>
>
> i have build an ecore diagram when i want to join 2 Eclasses using an
> Ereference arrow i must give a name a lower and upper bound to that
> arrow.
Yes it must have a name.
> it is not possible to use the arrow without giving any name to that ,
No, it's not.
> like in UML you can link to class without giging a name to the arrow
> linker, i have try to remove the name nad validate it , but many
> errors appears.
It must have a name. Maybe in UML the name can be implicitly the name
of the thing being referenced, but in Ecore it must have a name.
> i want to remove the name because after generating my genmodel from
> an Ecore the generated DSL grammar from that genmodel add that arrow
> name to my DSL grammar and i don't want that.
What is the point of the reference then? Is it derived or transient?
Maybe the DSL generator ignores transient or derived features...
>
> any contribution will be appreciate.
>
> Best regards,
> Frank


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: how to remove the EReference in my Ecore Diagram [message #897736 is a reply to message #897550] Wed, 25 July 2012 07:53 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
i have check and the reference was neither derived nor transient , so i don't really know was means for a reference to be transient or derived. can you explain it to me ?
Re: how to remove the EReference in my Ecore Diagram [message #897757 is a reply to message #897736] Wed, 25 July 2012 08:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Frank,

Derived features are not copied by EcoreUtil.copy because it's assumed
that their values are computed from the values of other non-derived
features. Perhaps the DSL generator will ignore such features as well...

Transient features are not serialized in the XML; all serializers are
generally expected to respect this behavior. Perhaps the DSL generator
will ignore such a feature as well...


On 25/07/2012 9:53 AM, frank fotso wrote:
> i have check and the reference was neither derived nor transient , so
> i don't really know was means for a reference to be transient or
> derived. can you explain it to me ?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: how to remove the EReference in my Ecore Diagram [message #897797 is a reply to message #897757] Wed, 25 July 2012 09:16 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
thanks , i think it is clear now.
but there is a way to make the DSL generator to ignore those features during grammar generation?
Re: how to remove the EReference in my Ecore Diagram [message #897808 is a reply to message #897797] Wed, 25 July 2012 09:26 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Frank,

That's not an EMF question. It's an Xtext question I assume?

On 25/07/2012 11:16 AM, frank fotso wrote:
> thanks , i think it is clear now.
> but there is a way to make the DSL generator to ignore those
> features during grammar generation?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: how to remove the EReference in my Ecore Diagram [message #897832 is a reply to message #897808] Wed, 25 July 2012 09:55 Go to previous messageGo to next message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
i think so too, Smile
Re: how to remove the EReference in my Ecore Diagram [message #897833 is a reply to message #897808] Wed, 25 July 2012 09:56 Go to previous message
frank fotso is currently offline frank fotsoFriend
Messages: 91
Registered: May 2012
Member
i think so too. Smile
Previous Topic:Ordered feature for non-list objects
Next Topic:[Texo] HTTP 404 when using Opera
Goto Forum:
  


Current Time: Thu Apr 25 08:10:55 GMT 2024

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

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

Back to the top