Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFT] The EMF Facet proposal
[EMFT] The EMF Facet proposal [message #529565] Mon, 26 April 2010 12:17 Go to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Hi,

The EMF Facet proposals seems very interesting and relevant. I have two
use cases that I hope will be supported:

- I would like to add a scriptSource EString attribute to existing
models, without actually having to change the original models.

- In the context of user interface models, the user's conceptual model
can often be different from the system model. Hence, it would be nice to
define the former as a view of the latter.

An additional comment (since I am working on the Javascript for EMF
project (JS4EMF)): EMF has recently added support for implementing
operations and derived features using scripts, e.g. OCL. Will this
mechanism be utilized, so that new scripting languages that use this
mechanism automatically can be used with EMF Facet.

Best regards,

Hallvard Trætteberg
Re: [EMFT] The EMF Facet proposal [message #529794 is a reply to message #529565] Tue, 27 April 2010 09:09 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
I agree that the proposal is very interesting and I would like to ask if
you could add me (and EMF Client Platform) as a interested party.
Cheers
Jonas

Hallvard Trætteberg wrote:
> Hi,
>
> The EMF Facet proposals seems very interesting and relevant. I have two
> use cases that I hope will be supported:
>
> - I would like to add a scriptSource EString attribute to existing
> models, without actually having to change the original models.
>
> - In the context of user interface models, the user's conceptual model
> can often be different from the system model. Hence, it would be nice to
> define the former as a view of the latter.
>
> An additional comment (since I am working on the Javascript for EMF
> project (JS4EMF)): EMF has recently added support for implementing
> operations and derived features using scripts, e.g. OCL. Will this
> mechanism be utilized, so that new scripting languages that use this
> mechanism automatically can be used with EMF Facet.
>
> Best regards,
>
> Hallvard Trætteberg
Re: [EMFT] The EMF Facet proposal [message #529806 is a reply to message #529565] Tue, 27 April 2010 10:20 Go to previous messageGo to next message
Frederic Madiot is currently offline Frederic MadiotFriend
Messages: 26
Registered: July 2009
Junior Member
Hi Hallvard,


Hallvard Traetteberg wrote on Mon, 26 April 2010 08:17

- I would like to add a scriptSource EString attribute to existing
models, without actually having to change the original models.


With the actual implementation, you can add such attribute in a Facet. But today, its value is computed and not serialized. We have planned in a next version to:
- add the possibility to set the value of added attributes and relations;
- to be able to serialize these values (in another model).

Hallvard Traetteberg wrote on Mon, 26 April 2010 08:17

- In the context of user interface models, the user's conceptual model
can often be different from the system model. Hence, it would be nice to
define the former as a view of the latter.


You can already do that with the Facet mechanism implemented by MoDisco (and you can integrate this Facet in the Browser to customize the view on the model).
On my blog ( http://fmadiot.blogspot.com/2010/03/yesterday-i-presented-mo disco-during.html), you can see an example with JUnit.

Hallvard Traetteberg wrote on Mon, 26 April 2010 08:17

An additional comment (since I am working on the Javascript for EMF
project (JS4EMF)): EMF has recently added support for implementing
operations and derived features using scripts, e.g. OCL. Will this
mechanism be utilized, so that new scripting languages that use this
mechanism automatically can be used with EMF Facet.


I suppose you are talking about the mechanism explained in the article http://www.eclipse.org/articles/article.php?file=Article-EMF -Codegen-with-OCL/index.html
With the Facet, you can reuse the EMF methods generated from OCL annotation. At this time, you just have to write a MoDisco Query (written with OCL or Java) which invokes the method defines in your Ecore model. The Query can then be used to create your Facet or customize the view on your model.

Regards,

Fred
Re: [EMFT] The EMF Facet proposal [message #529869 is a reply to message #529794] Tue, 27 April 2010 14:21 Go to previous messageGo to next message
Frederic Madiot is currently offline Frederic MadiotFriend
Messages: 26
Registered: July 2009
Junior Member
>>I agree that the proposal is very interesting
Thanks

>>and I would like to ask if you could add me (and EMF Client Platform) as a interested party.
No problem
Re: [EMFT] The EMF Facet proposal [message #622508 is a reply to message #529565] Tue, 27 April 2010 09:09 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
I agree that the proposal is very interesting and I would like to ask if
you could add me (and EMF Client Platform) as a interested party.
Cheers
Jonas

Hallvard Trætteberg wrote:
> Hi,
>
> The EMF Facet proposals seems very interesting and relevant. I have two
> use cases that I hope will be supported:
>
> - I would like to add a scriptSource EString attribute to existing
> models, without actually having to change the original models.
>
> - In the context of user interface models, the user's conceptual model
> can often be different from the system model. Hence, it would be nice to
> define the former as a view of the latter.
>
> An additional comment (since I am working on the Javascript for EMF
> project (JS4EMF)): EMF has recently added support for implementing
> operations and derived features using scripts, e.g. OCL. Will this
> mechanism be utilized, so that new scripting languages that use this
> mechanism automatically can be used with EMF Facet.
>
> Best regards,
>
> Hallvard Trætteberg
Re: [EMFT] The EMF Facet proposal [message #622510 is a reply to message #529565] Tue, 27 April 2010 10:20 Go to previous messageGo to next message
Frederic Madiot is currently offline Frederic MadiotFriend
Messages: 26
Registered: July 2009
Junior Member
Hi Hallvard,


Hallvard Traetteberg wrote on Mon, 26 April 2010 08:17
> - I would like to add a scriptSource EString attribute to existing
> models, without actually having to change the original models.

With the actual implementation, you can add such attribute in a Facet. But today, its value is computed and not serialized. We have planned in a next version to:
- add the possibility to set the value of added attributes and relations;
- to be able to serialize these values (in another model).

Hallvard Traetteberg wrote on Mon, 26 April 2010 08:17
> - In the context of user interface models, the user's conceptual model
> can often be different from the system model. Hence, it would be nice to
> define the former as a view of the latter.

You can already do that with the Facet mechanism implemented by MoDisco (and you can integrate this Facet in the Browser to customize the view on the model).
On my blog ( http://fmadiot.blogspot.com/2010/03/yesterday-i-presented-mo disco-during.html), you can see an example with JUnit.

Hallvard Traetteberg wrote on Mon, 26 April 2010 08:17
> An additional comment (since I am working on the Javascript for EMF
> project (JS4EMF)): EMF has recently added support for implementing
> operations and derived features using scripts, e.g. OCL. Will this
> mechanism be utilized, so that new scripting languages that use this
> mechanism automatically can be used with EMF Facet.

I suppose you are talking about the mechanism explained in the article http://www.eclipse.org/articles/article.php?file=Article-EMF -Codegen-with-OCL/index.html
With the Facet, you can reuse the EMF methods generated from OCL annotation. At this time, you just have to write a MoDisco Query (written with OCL or Java) which invokes the method defines in your Ecore model. The Query can then be used to create your Facet or customize the view on your model.

Regards,

Fred
Re: [EMFT] The EMF Facet proposal [message #622512 is a reply to message #529794] Tue, 27 April 2010 14:21 Go to previous message
Frederic Madiot is currently offline Frederic MadiotFriend
Messages: 26
Registered: July 2009
Junior Member
>>I agree that the proposal is very interesting
Thanks

>>and I would like to ask if you could add me (and EMF Client Platform) as a interested party.
No problem
Previous Topic:Modeling to the bit level
Next Topic:[Announce] Webinar: CDO Model Repository - Apr. 29
Goto Forum:
  


Current Time: Tue Oct 03 09:37:27 GMT 2023

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

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

Back to the top