Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Get started with EMF Facet
Get started with EMF Facet [message #714822] Thu, 11 August 2011 10:54 Go to next message
Mickael Istria is currently offline Mickael Istria
Messages: 735
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi all,

First, my use-case: I have an ecore model, jbi.ecore that I do not want
to edit since it relies on a specification. However, I want to add some
attributes to some Objects of this Ecore model (for example, I want to
add a "timeout" attribute to Service).
First question: is EMF-Facet covering this use-case? (this one is just
to ensure I clearly understood the goal of EMF-Facet)

Then my second question is: how to get started? I can't find any UI
entry for EMF Facet. Is this normal, or did my installation go wrong?

Thanks in advance,
--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com

[Updated on: Tue, 16 August 2011 09:51]

Report message to a moderator

(no subject) [message #716050 is a reply to message #714822] Tue, 16 August 2011 05:46 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 735
Registered: July 2009
Location: Grenoble, France
Senior Member
Ok, I have seen the EMF Facet tables and so on, but I am still not sure
on whether EMF-Facet is what I need for my use case:
I'd like to add EStructuralFeatures to objects of an ecore model from an
external bundle, is it possible?

--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Re: (no subject) [message #716130 is a reply to message #716050] Tue, 16 August 2011 10:09 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARD
Messages: 522
Registered: July 2009
Senior Member
You can do that by extending the ecore meta-model by means of inheritance but EMF Facet won't help you there as it only adds transient attributes.
Re: (no subject) [message #716140 is a reply to message #716130] Tue, 16 August 2011 10:26 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 735
Registered: July 2009
Location: Grenoble, France
Senior Member
On 16/08/2011 16:09, Sylvain EVEILLARD wrote:
> You can do that by extending the ecore meta-model by means of
> inheritance but EMF Facet won't help you there as it only adds transient
> attributes.

Ok thanks a lot.
Concerning inheritance, my approach starts from the other side. It is
mode "aspect-oriented" while it consists in adding behavior and semantic
in a model from an external contribution.

Regards,
--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Re: (no subject) [message #716530 is a reply to message #716130] Wed, 17 August 2011 11:54 Go to previous message
Gregoire Dupe is currently offline Gregoire Dupe
Messages: 74
Registered: September 2009
Location: France
Member
> it only adds transient attributes.

That's right. Non-derived attributes/references will provided in the next version.
Previous Topic:End user oriented EMF Parsng/Reporting/Transforming
Next Topic:Strange behaviour of EContentAdapter
Goto Forum:
  


Current Time: Fri Jul 25 09:01:38 EDT 2014

Powered by FUDForum. Page generated in 0.01929 seconds