Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [CDO][0.8.0] EAnnotation
[CDO][0.8.0] EAnnotation [message #94172] |
Sat, 25 August 2007 12:47  |
Eclipse User |
|
|
|
In my model(.ecore), I have information in my annotations that I would like
to send to my Store.
Right now, EPackages, EClass, EStructuralFeature etc.. are converted in
CDOPackage, CDOClass, etc...
Store receive these classes.
Unfortunately CDOPackage and CDOCLass doesn't have that kind of information.
Right now to get around that problem... CDOServer needs to know in advance
which package it will need so it can use EAnnotations.
Do you think it will be good to have such feature ?
|
|
| |
Re: [CDO][0.8.0] EAnnotation [message #94202 is a reply to message #94193] |
Sat, 25 August 2007 14:24   |
Eclipse User |
|
|
|
Originally posted by: stepper.sympedia.de
Eike Stepper schrieb:
> Hi Simon,
>
> CDOPackage has a method String getEcore() to receive the serialized
> string of the associated model.
> You can use this method on client-side and on server-side.
> Formerly this method returned null for non-dynamic (generated) models.
> But now that you need this information I have changed the code to
> always store, transfer and return the model XML string.
Sorry, this change caused an exception at another location which I have
to track down ;-(
I've reverted the change in the meantime but I'm working on getting it
in again.
Cheers
/Eike
>
> If you deploy EMF to your server you should be able to deserialize the
> XML model string to an EPackage instance which you can use to query
> annotations.
> Does that help?
>
> Cheers
> /Eike
>
>
> Simon McDuff schrieb:
>> In my model(.ecore), I have information in my annotations that I
>> would like to send to my Store.
>>
>> Right now, EPackages, EClass, EStructuralFeature etc.. are converted
>> in CDOPackage, CDOClass, etc...
>> Store receive these classes.
>>
>> Unfortunately CDOPackage and CDOCLass doesn't have that kind of
>> information.
>>
>> Right now to get around that problem... CDOServer needs to know in
>> advance which package it will need so it can use EAnnotations.
>>
>> Do you think it will be good to have such feature ?
>>
>>
>>
>>
|
|
| |
Re: [CDO][0.8.0] EAnnotation [message #94236 is a reply to message #94202] |
Sun, 26 August 2007 03:35  |
Eclipse User |
|
|
|
Originally posted by: stepper.sympedia.de
Hi Simon,
The exception occurred only with EcorePackage.eInstance because EMF does
some setter/getter magic (see EMF newsgroup thread "eGenericSuperTypes").
Currently I have no solution to this problem so I've disabled getEcore()
only for EcorePackage.eInstance. It should work for all other models.
Cheers
/Eike
Eike Stepper schrieb:
> Eike Stepper schrieb:
>> Hi Simon,
>>
>> CDOPackage has a method String getEcore() to receive the serialized
>> string of the associated model.
>> You can use this method on client-side and on server-side.
>> Formerly this method returned null for non-dynamic (generated) models.
>> But now that you need this information I have changed the code to
>> always store, transfer and return the model XML string.
> Sorry, this change caused an exception at another location which I
> have to track down ;-(
> I've reverted the change in the meantime but I'm working on getting it
> in again.
>
> Cheers
> /Eike
>
>
>>
>> If you deploy EMF to your server you should be able to deserialize
>> the XML model string to an EPackage instance which you can use to
>> query annotations.
>> Does that help?
>>
>> Cheers
>> /Eike
>>
>>
>> Simon McDuff schrieb:
>>> In my model(.ecore), I have information in my annotations that I
>>> would like to send to my Store.
>>>
>>> Right now, EPackages, EClass, EStructuralFeature etc.. are
>>> converted in CDOPackage, CDOClass, etc...
>>> Store receive these classes.
>>>
>>> Unfortunately CDOPackage and CDOCLass doesn't have that kind of
>>> information.
>>>
>>> Right now to get around that problem... CDOServer needs to know in
>>> advance which package it will need so it can use EAnnotations.
>>>
>>> Do you think it will be good to have such feature ?
>>>
>>>
>>>
>>>
|
|
|
Re: [CDO][0.8.0] EAnnotation [message #609524 is a reply to message #94172] |
Sat, 25 August 2007 14:15  |
Eclipse User |
|
|
|
Hi Simon,
CDOPackage has a method String getEcore() to receive the serialized
string of the associated model.
You can use this method on client-side and on server-side.
Formerly this method returned null for non-dynamic (generated) models.
But now that you need this information I have changed the code to always
store, transfer and return the model XML string.
If you deploy EMF to your server you should be able to deserialize the
XML model string to an EPackage instance which you can use to query
annotations.
Does that help?
Cheers
/Eike
Simon McDuff schrieb:
> In my model(.ecore), I have information in my annotations that I would like
> to send to my Store.
>
> Right now, EPackages, EClass, EStructuralFeature etc.. are converted in
> CDOPackage, CDOClass, etc...
> Store receive these classes.
>
> Unfortunately CDOPackage and CDOCLass doesn't have that kind of information.
>
> Right now to get around that problem... CDOServer needs to know in advance
> which package it will need so it can use EAnnotations.
>
> Do you think it will be good to have such feature ?
>
>
>
>
|
|
|
Re: [CDO][0.8.0] EAnnotation [message #609525 is a reply to message #94193] |
Sat, 25 August 2007 14:24  |
Eclipse User |
|
|
|
Eike Stepper schrieb:
> Hi Simon,
>
> CDOPackage has a method String getEcore() to receive the serialized
> string of the associated model.
> You can use this method on client-side and on server-side.
> Formerly this method returned null for non-dynamic (generated) models.
> But now that you need this information I have changed the code to
> always store, transfer and return the model XML string.
Sorry, this change caused an exception at another location which I have
to track down ;-(
I've reverted the change in the meantime but I'm working on getting it
in again.
Cheers
/Eike
>
> If you deploy EMF to your server you should be able to deserialize the
> XML model string to an EPackage instance which you can use to query
> annotations.
> Does that help?
>
> Cheers
> /Eike
>
>
> Simon McDuff schrieb:
>> In my model(.ecore), I have information in my annotations that I
>> would like to send to my Store.
>>
>> Right now, EPackages, EClass, EStructuralFeature etc.. are converted
>> in CDOPackage, CDOClass, etc...
>> Store receive these classes.
>>
>> Unfortunately CDOPackage and CDOCLass doesn't have that kind of
>> information.
>>
>> Right now to get around that problem... CDOServer needs to know in
>> advance which package it will need so it can use EAnnotations.
>>
>> Do you think it will be good to have such feature ?
>>
>>
>>
>>
|
|
| |
Re: [CDO][0.8.0] EAnnotation [message #609529 is a reply to message #94202] |
Sun, 26 August 2007 03:35  |
Eclipse User |
|
|
|
Hi Simon,
The exception occurred only with EcorePackage.eInstance because EMF does
some setter/getter magic (see EMF newsgroup thread "eGenericSuperTypes").
Currently I have no solution to this problem so I've disabled getEcore()
only for EcorePackage.eInstance. It should work for all other models.
Cheers
/Eike
Eike Stepper schrieb:
> Eike Stepper schrieb:
>> Hi Simon,
>>
>> CDOPackage has a method String getEcore() to receive the serialized
>> string of the associated model.
>> You can use this method on client-side and on server-side.
>> Formerly this method returned null for non-dynamic (generated) models.
>> But now that you need this information I have changed the code to
>> always store, transfer and return the model XML string.
> Sorry, this change caused an exception at another location which I
> have to track down ;-(
> I've reverted the change in the meantime but I'm working on getting it
> in again.
>
> Cheers
> /Eike
>
>
>>
>> If you deploy EMF to your server you should be able to deserialize
>> the XML model string to an EPackage instance which you can use to
>> query annotations.
>> Does that help?
>>
>> Cheers
>> /Eike
>>
>>
>> Simon McDuff schrieb:
>>> In my model(.ecore), I have information in my annotations that I
>>> would like to send to my Store.
>>>
>>> Right now, EPackages, EClass, EStructuralFeature etc.. are
>>> converted in CDOPackage, CDOClass, etc...
>>> Store receive these classes.
>>>
>>> Unfortunately CDOPackage and CDOCLass doesn't have that kind of
>>> information.
>>>
>>> Right now to get around that problem... CDOServer needs to know in
>>> advance which package it will need so it can use EAnnotations.
>>>
>>> Do you think it will be good to have such feature ?
>>>
>>>
>>>
>>>
|
|
|
Goto Forum:
Current Time: Sun Jun 08 07:21:18 EDT 2025
Powered by FUDForum. Page generated in 0.03574 seconds
|