Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to tag a EClass as serializable.
How to tag a EClass as serializable. [message #754554] Thu, 03 November 2011 09:19 Go to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Hi, I need to tag an eobject as serializable to go over a RPC.

I see I can add customer datatypes, which I can specify as serializable

Is there a declarative option to add marker interfaces to classes, or is something that has to be done by modifying the generated code?

Thanks
Re: How to tag a EClass as serializable. [message #754559 is a reply to message #754554] Thu, 03 November 2011 09:44 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
What I do in this case is create a new interface which extends EObject and Serializable and set that interface as the
root extends/implements in the genmodel properties of the epackage.

gr. Martin

On 11/03/2011 10:19 AM, Tom H wrote:
> Hi, I need to tag an eobject as serializable to go over a RPC.
>
> I see I can add customer datatypes, which I can specify as serializable
>
> Is there a declarative option to add marker interfaces to classes, or is something that has to be done by modifying the
> generated code?
>
> Thanks


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: How to tag a EClass as serializable. [message #754564 is a reply to message #754559] Thu, 03 November 2011 09:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33143
Registered: July 2009
Senior Member
Yes, or you could define an EClass that wraps java.io.Serializeable (set
the instance type name) and mark it as an abstract interface and then
use that in your super types.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=245014 is worth having a
look at.

On 03/11/2011 10:44 AM, Martin Taal wrote:
> What I do in this case is create a new interface which extends EObject
> and Serializable and set that interface as the root extends/implements
> in the genmodel properties of the epackage.
>
> gr. Martin
>
> On 11/03/2011 10:19 AM, Tom H wrote:
>> Hi, I need to tag an eobject as serializable to go over a RPC.
>>
>> I see I can add customer datatypes, which I can specify as serializable
>>
>> Is there a declarative option to add marker interfaces to classes, or
>> is something that has to be done by modifying the
>> generated code?
>>
>> Thanks
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to tag a EClass as serializable. [message #754682 is a reply to message #754564] Thu, 03 November 2011 20:37 Go to previous messageGo to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
It looks like the GWT target for EMF genmodels does pretty much exactly what I need, though it looks like the included gwt-user is tagged at an old version which indicates that hasn't been worked on for a while.

Is there any public documentation on that project?, as the wiki is pretty limited
Re: How to tag a EClass as serializable. [message #754734 is a reply to message #754682] Fri, 04 November 2011 06:09 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33143
Registered: July 2009
Senior Member
Tom,

Comments below.

On 03/11/2011 9:37 PM, Tom H wrote:
> It looks like the GWT target for EMF genmodels does pretty much
> exactly what I need, though it looks like the included gwt-user is
> tagged at an old version which indicates that hasn't been worked on
> for a while.
That's a function of which GWT SDK you've installed.
>
> Is there any public documentation on that project?, as the wiki is
> pretty limited
No, there's not much documentation, unfortunately.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:best way to get latest EMF fixes into existing 3.7.1 installation
Next Topic:About using EMF on backend and a web-UI frontend
Goto Forum:
  


Current Time: Fri May 03 23:27:29 GMT 2024

Powered by FUDForum. Page generated in 0.03145 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top