|
Re: Allowing custom extension to my model [message #887095 is a reply to message #886982] |
Fri, 15 June 2012 23:28   |
Eclipse User |
|
|
|
<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>
|
|
|
Re: Allowing custom extension to my model [message #888332 is a reply to message #887095] |
Sun, 17 June 2012 22:10  |
Eclipse User |
|
|
|
Thanks for the response.
Quote:This is normally done by encoding all this information in the URI
and specializing URIHandlers or by providing specialized resource
implementations.
Yes, I had a similar alternative in mind (a generic list of name-value pair "extension element") if nothing else was available.
Quote:
> Considering the UI is pluggable, I would like the model to be pluggable as well.
What does that mean?
Is it similar to this: [creating-children-you-didnt-know.html]
Probably not. What I need to do is capture configuration information in a model. The base model captures the configuration from the base UI. When you extend the UI, you are expected to provide extensions to the model as well and the code that binds the extension UI and the extension model.
I think the simple solution is to declare a base class in the model. And UI extension provides in its model, an extension of the model base class.
Does that make any sense?
|
|
|
Powered by
FUDForum. Page generated in 1.05637 seconds