[CDO] custom EDataTypes [message #515302] |
Thu, 18 February 2010 07:46  |
Eclipse User |
|
|
|
Hi all,
our model contains a Polygon object which holds a list of Point objects, which are
custom EDataType.
When I make a copy of the Point list with
List<Point> points= new ArrayList<Point>(polygon.getPoints());
ArrayList calls the collection's toArray() method and EMF/CDO returns list of Strings instead of a list of Point objects.
The strings are the result of convertPointToString() serializer method.
This causes some problems, e.g. because EMF EDIT's RemoveCommand also uses ArrayList to create a copy of the to be removed objects.
Thanks in advance
Rolf
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03395 seconds