Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [EMFT] The EMF Facet proposal
| |
| Re: [EMFT] The EMF Facet proposal [message #529806 is a reply to message #529565] |
Tue, 27 April 2010 10:20   |
Frederic Madiot 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 #622510 is a reply to message #529565] |
Tue, 27 April 2010 10:20   |
Frederic Madiot 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
|
|
| |
Goto Forum:
Current Time: Tue Oct 03 09:37:27 GMT 2023
Powered by FUDForum. Page generated in 0.02147 seconds
|