[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

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