[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] How to extends an EObject with the Serializable interface
|
- From: Philip Chang <philip2134@xxxxxxx>
- Date: Sun, 10 May 2009 17:50:45 +0200
- Newsgroups: eclipse.tools.emf
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.21 (Windows/20090302)
Hi,
I have an Object
public class ObjectA {
String name;
MyEMFObject ObjectB;
}
ObjectA a = ...;
outputStream = new ObjectOutputStream(new ByteArrayOutputStream());
outputStream.writeObject (a);
I get a NotSerializeableException when trying to serialize the ObjectA
because MyEMFObject extends only EObject but not Serializable.
What do I have todo in the ECore editor so that MyEMFObject implements
also the Serializable interface. Somehow I cannot manage it.
Thx in advance.
Regards,
Philip