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.
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.
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="").
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