| [news.eclipse.technology.epf] Re: Getting RoleSets from XMI files |
Quentin,
Comments below.
No, RoleSets don't inherit from Roles. As the name explicitely shows off, the RoleSets are composed of Role, it's not the same relation.It sure hurts my brain when you say some Roles are RoleSets...
Anyway, I finally figured out why I could list roles and rolesets at the same time, and why I was getting duplicate roles : what we get from getAllContents() is the entire Work Breakdown Structure, as displayed in Eclipse Process Framework. So, if we only extract the Roles, we miss the Phases that are the fathers of roles (as in Tree meaning). And that could be OK for our project... I thus believe it is no more a problem now.
I wasn't trying to imply there were empty but rather to determine if there are cross file references. What was the actual value of the URI you used to load the initial resource as what do these href values look like?
But the problem of the work products having no name is still actual. EObject.eIsProxy() applied on work products returns "true". Plus, I use absolute URI, as you told me to do. The .xmi file doesn't contain any empty link (href="").
A common mistake is to fiddle with the classpath via the project's properties when, for a plugin, you must edit the dependencies of the MANIFEST.MF or the compile time problem will just come back at runtime.
Another problem, but maybe it's not the right place to ask for here, when I want to use the classes I've made for reading the XMI files, from my Eclipse plugin which is graphical, I get a NoClassDefFoundError. I've been searching the web for a while now, without succeeding in resolving this new problem... Seems to be a CLASSPATH environment variable problem, but I've tried many manipulations on it, it still doesn't work :
java.lang.NoClassDefFoundError: org/eclipse/emf/ecore/resource/ResourceSet
Thanks for your help,
Quentin