|
|
|
|
|
Re: Modifying a static ecore model via the EMF dynamic API [message #418670 is a reply to message #418669] |
Wed, 23 April 2008 14:46 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------040207020404070908080907
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
AJ,
Comments below.
AJ wrote:
> Ed,
>
> Please see comments below.
>
>> No, the generated package should be considered immutable.
>
> So, does it mean the dynamic model will have to create/use its own
> edit providers as well?
Yes, the reflective ones.
>
>
>> Maybe what you really want is EMF's equivalent of XML Schema
>> wildcards that allow you to associate additional properties directly
>> an existing base
> instance? >Such data could come from another static model or from a
> dynamic model...
>
> Yes, the latter sounds right. Can you please point me to where I can
> find more information or some examples?
You'll want to create an XML Schema with wildcards and generate a model
from that.
Binding XML to Java
< http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava>
Be forewarned though, all this XML Schema wildcard stuff is kind of gross.
Perhaps I should be asking what problem you are trying to solve. I.e.,
why is it that you'd not know about the properties that you need until
later while you are running?
>
> Thanks Ed!
>
>
--------------040207020404070908080907
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
AJ,<br>
<br>
Comments below.<br>
<br>
<br>
AJ wrote:
<blockquote
cite="mid:c1e06835c91d23b0a141592403636596$1@www.eclipse.org"
type="cite">Ed,
<br>
<br>
Please see comments below.
<br>
<br>
<blockquote type="cite">No, the generated package should be
considered immutable.
<br>
</blockquote>
<br>
So, does it mean the dynamic model will have to create/use its own edit
providers as well?
<br>
</blockquote>
Yes, the reflective ones.<br>
<blockquote
cite="mid:c1e06835c91d23b0a141592403636596$1@www.eclipse.org"
type="cite"><br>
<br>
<blockquote type="cite">Maybe what you really want is EMF's
equivalent of XML Schema wildcards that allow you to associate
additional properties directly an existing base </blockquote>
instance?
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03222 seconds