About Getting task from XMI files [message #692658] |
Mon, 04 July 2011 20:27 |
Eclipse User |
|
|
|
I saw a topic called
"Getting RoleSets from xmi files"... this topic was posted by a guy called quentin..
So, here's the thing... when this Guy
Quentin says:
" 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."
How can he do it???... I mean, I tried to do it with the same code that he posted but it doesn't work:
ResourceSet resourceSet = new ResourceSetImpl();
Resource resource = resourceSet.getResource(fileURI,true);
for (Iterator i = resource.getAllContents(); i.hasNext() {
Object o = i.next();
if (o instanceof Task) {
Task ta = (Task)o;
System.out.println(" - Role : " + ta.getPresentationName());
}
It doesn't even read the xmi.. It doesn't get in it...
So, would you help me with this... or if you have a code example of how to do it, that would be awsome...
I really need to get the info(task, roles...) from the xmi file
Ok, that' all, I hope you can help me..
Thanks a lot...
|
|
|
Powered by
FUDForum. Page generated in 0.02859 seconds