| [news.eclipse.technology.epf] Re: Getting RoleSets from XMI files |
Quentin,
Comments below.
I almost get the sense that multiple inheritance is involved. I.e., I think you are telling me that RoleSet inherits from Role, right? It's important to realize that Java doesn't not support multiple inheritance of classes. So the Impl class that implements RoleSet might not inherit from the Impl class that implements Role. After all, if it inherits from two unrelated model classes A and B, while RoleSet will be an instance of A and of B, RoleSetImpl will inherit from either AImpl or BImpl, but not both. In any case, you are telling me you can list all the Role instances but none indicated that instanceof RoleSet is true. That seems to imply to me that none of the Role instances are RoleSets; Java doesn't tend to lie abut such things.Hi,
I have cast the RoleDescriptorImpl into RoleDescriptor and I'm able to use the interface, but it unfortunately doesn't bring any solution to my problems.
To sum up, my different problems are:
- I can't list the "RoleSet" elements from the model (my EPFC file: model.xmi), but I can list all the "Role" elements (and some of them are "RoleSet" but nothing can point out that they are Role Sets...)
- I can't list the "WorkProductType" elements neither, but I can list all the "WorkProduct" elementsThis is like asking, why can I find A but I can find B? How would I know?
- When I list the guidelines, I can't have their name (getName() or getPresentationName() returns an empty string) although they do have names as EPF Composer shows them.It sounds to my like an unresolved proxy. Does EObject.eIsProxy return true for them? If you have unresolved proxy problems, which also sounds like a likely issue, it's most likely caused by not using an appropriate absolute URI to load the initial resolves. Relative URIs within the serialization are resolved against the URI used to load the resource (just like in .html pages in a browser). Does the .xmi contain href="" attributes?
Most projects ship with an SDK that includes the source code. It's certainly in CVS...
Is it possible to access EPF Composer source code ? There would surely be the solution to my problem in it, since it can browse my model.
I wonder why I'm the only one answering questions here? Doesn't anyone working on this project read the newsgroup?
Thanks in advance,
Quentin