Allowing custom extension to my model [message #886982] |
Fri, 15 June 2012 23:11 |
Praveen Balaji Messages: 2 Registered: May 2012 |
Junior Member |
|
|
I have a base structure for my model (ecore). The UI that uses this model allows users to configure properties for Persistence Data Stores. The Data Stores configurations themselves are pluggable and the configuration for each of these Data Stores is very specific to the Data Store.
[Attaching an image to show two such configurations]
Considering the UI is pluggable, I would like the model to be pluggable as well. The provider of the UI extensions would also provide model extensions and would know how to populate the model. Is there some way to achieve this?
I see EMF Facets (www.eclipse.org/modeling/emft/facet/) tries to address this problem, but it's in incubation. Are there any other creative ways someone achieved this?
- Praveen
[Updated on: Fri, 15 June 2012 23:13] Report message to a moderator
|
|
|
Re: Allowing custom extension to my model [message #887095 is a reply to message #886982] |
Sat, 16 June 2012 03:28 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Praveen,<br>
<br>
Comments below.<br>
<br>
On 16/06/2012 1:11 AM, Praveen Balaji wrote:
<blockquote cite="mid:jrgfev$nak$1@xxxxxxxxe.org" type="cite">
<pre wrap="">I have a base structure for my model (ecore). The UI that uses this model allows users to configure properties for Persistence Data Stores. The Data Stores configurations themselves are pluggable and the configuration for each of these Data Stores is very specific to the Data Store.
[Attaching an image to show two such configurations]</pre>
</blockquote>
This is normally done by encoding all this information in the URI
and specializing URIHandlers or by providing specialized resource
implementations.<br>
<blockquote cite="mid:jrgfev$nak$1@xxxxxxxxe.org" type="cite">
<pre wrap="">
Considering the UI is pluggable, I would like the model to be pluggable as well.</pre>
</blockquote>
What does that mean?<br>
<blockquote cite="mid:jrgfev$nak$1@xxxxxxxxe.org" type="cite">
<pre wrap=""> The provider of the UI extensions would also provide model extensions and would know how to populate the model. Is there some way to achieve this?</pre>
</blockquote>
I don't know what "this" is. Is it similar to this:<small><br>
</small>
<blockquote><small><a
href="http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CFQQFjAA&url=http%3A%2F%2Fed-merks.blogspot.com%2F2008%2F01%2Fcreating-children-you-didnt-know.html&ei=zvzbT62HHo7IswaklfnwDQ&usg=AFQjCNHF1uSyjy4GPqpXfF_M1_WaeWGFbg&sig2=F0vRw3L-WxRCDVLle24n8Q"
class="l vst" onmousedown="return
rwt(this,'','','','1','AFQjCNHF1uSyjy4GPqpXfF_M1_WaeWGFbg','F0vRw3L-WxRCDVLle24n8Q','0CFQQFjAA',null,event)">Merks'
Meanderings: Creating <em>Children You Didn't Know Existed</em></a></small></blockquote>
<blockquote cite="mid:jrgfev$nak$1@xxxxxxxxe.org" type="cite">
<pre wrap="">
I see EMF Facets (<a class="moz-txt-link-abbreviated" href="http://www.eclipse.org/modeling/emft/facet/">www.eclipse.org/modeling/emft/facet/</a>) tries to address this problem, but it's in incubation. Are there any other creative ways someone achieved this?</pre>
</blockquote>
You can always model your objects so they can be annotated with
other objects, much as EModelElement can contain EAnnotations which
in turn can contain any other object or can reference any other
object.<br>
<blockquote cite="mid:jrgfev$nak$1@xxxxxxxxe.org" type="cite">
<pre wrap="">
- Praveen
</pre>
</blockquote>
</body>
</html>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.01882 seconds