Problems copying an XSDSchema [message #586076] |
Tue, 27 April 2004 18:13 |
Eclipse User |
|
|
|
For the purpose of performing a "save as" type operation on an XSDResource I
create a new resource instance and then attempt to copy the root EObjects
and then add the copies to the new resource's contents. When executing the
copy on a XSDResource composed of XSDSimpleTypeDefinition instances I
encounter an IllegalArgumentException. It appears that the
XSDSimpleTypeDefinition.patch code is attempting to set a member type
definition that already exists in the list. My question is should I be able
to copy a XSDSchema instance and paste it into a new XSDResource ? Are
there special considerations that need to be taken into account when copying
an XSDSchema instance?
Thread [main] (Suspended (exception IllegalArgumentException))
EObjectEList(BasicEList).set(int, Object) line: 543
BasicEList$EListIterator.set(Object) line: 1398
XSDSimpleTypeDefinitionImpl.patch() line: 680
XSDSchemaImpl(XSDConcreteComponentImpl).patch() line: 513
XSDSchemaImpl.patch() line: 1494
XSDSchemaImpl.traverseToRootForPatching() line: 1468
XSDSchemaImpl.adoptContent(EReference, XSDConcreteComponent) line: 1767
XSDSchemaImpl(XSDConcreteComponentImpl).eNotify(Notification ) line: 1133
NotificationChainImpl.dispatch(Notification) line: 115
NotificationChainImpl.dispatch() line: 103
EObjectContainmentEList(NotifyingListImpl).addAllUnique(int, Collection)
line: 342
EObjectContainmentEList(NotifyingListImpl).addAllUnique(Coll ection) line:
294
EObjectContainmentEList(BasicEList).addAll(Collection) line: 675
EcoreUtil$Copier.copyContainment(EReference, EObject, EObject) line: 387
EcoreUtil$Copier.copy(EObject) line: 365
EcoreUtil$Copier.copyAll(Collection) line: 336
EcoreUtil.copyAll(Collection) line: 300
Thanks in advance,
Dennis Fuglsang
|
|
|
Powered by
FUDForum. Page generated in 0.54759 seconds