Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EPF » Getting RoleSets from XMI files
Getting RoleSets from XMI files [message #588995] Fri, 25 April 2008 09:22
Eclipse UserFriend
Originally posted by:


I can list all the roles from my EPF Composer model, I can also list all
the tasks and phases, as well as the work products, etc.

But I can't find a way to get the RoleSets. I'd like to list the RoleSets
and then get the Roles from them.

Here is an example of how I can list all the roles (and also the rolesets,
but there's apparently no way to know whether it's a roleset or a role) :

Resource resource = resourceSet.getResource(fileURI,true);
for (Iterator i = resource.getAllContents(); i.hasNext();) {
Object o =;
if (o instanceof RoleDescriptorImpl) {
RoleDescriptorImpl rdi = (RoleDescriptorImpl)o;
System.out.println(" - Role : " + rdi.getPresentationName());

And by the way, I get no "RoleSetImpl" from resource.getAllContents().

I also have the same problem for Work Products and Work Product Types. I
can list the Work Products but I can't have the Work Product Types.

Thanks in advance,

Previous Topic:epfc to cvs via ssh2
Next Topic:Re-using RichText and RichTextEditor
Goto Forum:

Current Time: Wed Dec 01 20:07:21 GMT 2021

Powered by FUDForum. Page generated in 0.01558 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top