[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Re: XSD key-keyref support revisited
|
Hi Marcelo,
I'm afraid the attached is not a patch as such, merely a ghastly
model-specific hack to read and write bare key values. If anything though,
it does hint at the difficulties that would be encountered in genericizing
such key support in a generative/reflective meta-model-driven fashion.
Cheers,
Adrian.
"Marcelo Paternostro" <marcelop@xxxxxxxxxx> wrote in message
news:fo9pu3$77a$2@xxxxxxxxxxxxxxxxxxxx
> Thanks for the patch Adrian. Ed is on vacation and will be back in about
> 2 weeks. I am sure he will spend a few days checking what happening on
> the newsgroup and will send you his ideas about your code.
>
> Cheers,
> Marcelo
>
> Adrian Price wrote:
>> Hi Ed,
>>
<snip/>
>> I was originally thinking in terms of a metamodel-driven implementation
>> (generative or reflective) but given your suggestions I did try
>> overriding the Resource.getURIFragment(EObject) and
>> InternalEObject.eResolveProxy(InternalEObject) methods to store/resolve
>> the specific keys. The attached code just about works but it turned into
>> the most hideous kludge ;-(
<snip/>