Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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: quentin.deme.st.com

Hello,

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,

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


Current Time: Thu Apr 25 15:53:23 GMT 2024

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

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

Back to the top