Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EPF » Problem using EMF and EPF library
Problem using EMF and EPF library [message #588850] Wed, 23 April 2008 08:50
Eclipse UserFriend
Originally posted by:


I have to make a plugin for Eclipse. I must be able to read EPF Composer
xmi files in order to display some information about tasks, roles, work
products etc.

The problem is that when I use "ResourceSet resourceSet = new
ResourceSetImpl();", the function in which it's contained immediately
stops, and no exception can be caught. I tried with try/catch, and I can't
catch anything.

That's quite a problem because nothing happens when I call the function
that uses ResourceSetImpl().

I'm trying first to make a little class with basic features, a sort of
hello world equivalent.

import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;

public class TestEPFXMIParser {
public TestEPFXMIParser() { }
public String getString() {
// Create a ResourceSet
try {
ResourceSet resourceSet = new ResourceSetImpl();
return "ok";
catch (Exception e) {
System.out.println("Exception : " + e.toString());
return "failed";

And I use it this way :

TestEPFXMIParser t = new TestEPFXMIParser();
System.out.println("Result = " + t.getString());

And nothing happens... no text is displayed, not even "failed". The
getString() function stops just after new ResourceSetImpl().

Could you help me solve this problem ? And is there some example code or
snippet about what I'm trying to do ? Because I can't find any
documentation on the Internet, except the JavaDoc for EPF API.

Thanks in advance,

Previous Topic:Can artefact versions be modelled using EPF?
Next Topic:ActivityDiagramImpl
Goto Forum:

Current Time: Wed Dec 01 20:03:14 GMT 2021

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

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

Back to the top