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 #49428] Wed, 23 April 2008 08:50 Go to next message
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
Re: Problem using EMF and EPF library [message #49520 is a reply to message #49428] Wed, 23 April 2008 10:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Quentin,

Have you run it under debug control? Unless you run eclipse with
-consolelog, I don't think you'll see what's being printed to
System.out. An common newbie mistake when building plugins is to fiddle
directly with the project's properties to fix compilation problems only
to have those same problems come back at runtime. So be sure to edit
the MANIFEST.MF's dependencies to fix any compilation problems caused by
things missing from the classpath. (I doubt it will make a difference,
but Throwable is a more general thing to catch.)


Quentin DEME wrote:
> 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
>
Re: Problem using EMF and EPF library [message #49580 is a reply to message #49520] Wed, 23 April 2008 12:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: quentin.deme.st.com

I finally succeeded in having a result from my program. Now I
unfortunately have another problem. I get the following error:

Exception in thread "main"
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
'http:///org/eclipse/epf/uma/resourcemanager.ecore' not found.
(file:///C:/myWorkspace/testprj/EPF4/export.xmi, 3, 118)

The file I'm trying to read (export.xmi) is an EPF Composer output file.
It's heading is:

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI epf:version="1.2.0" xmi:version="2.0"
xmlns:epf="http://www.eclipse.org/epf"
xmlns:org.eclipse.epf.uma="http://www.eclipse.org/epf/uma/1.0.4/uma.ecore"
xmlns:org.eclipse.epf.uma.resourcemanager="http:///org/eclipse/epf/uma/resourcemanager.ecore"
xmlns:xmi="http://www.omg.org/XMI">
<org.eclipse.epf.uma.resourcemanager:ResourceManager
guid="_mtb_FPL5Edm6Nvont3uinw" xmi:id="_mtb_FPL5Edm6Nvont3uinw">

The current code is:

public class TestEPFXMIParser {

public TestEPFXMIParser() {
// create a ResourceSet.

ResourceSet resourceSet = new ResourceSetImpl();
//org.eclipse.epf.library.LibraryService.getInstance().openM ethodLibrary(String,uri);

// initialize ResourceSet
final ExtendedMetaData extendedMetaData = new
BasicExtendedMetaData(resourceSet.getPackageRegistry());
resourceSet.getLoadOptions().put(XMLResource.OPTION_EXTENDED _META_DATA,
extendedMetaData);
resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI,
UMLPackage.eINSTANCE);
resourceSet.getPackageRegistry().put(NotationPackage.eNS_URI ,
NotationPackage.eINSTANCE);
resourceSet.getPackageRegistry().put(ModelPackage.eNS_URI,
ModelPackage.eINSTANCE);
resourceSet.getPackageRegistry().put(UmaPackage.eNS_URI,
UmaPackage.eINSTANCE);
System.out.println("URI = " + ModelPackage.eNS_URI);
resourceSet.getPackageRegistry().put(EcorePackage.eNS_URI,
EcorePackage.eINSTANCE);
resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap().put( "xmi",
new XMIResourceFactoryImpl());
URI fileURI = URI.createFileURI("EPF4/export.xmi");

Resource resource = resourceSet.getResource(fileURI, true);
}
}

I don't really understand these "Package" notions, can you explain me the
right way to use them and how to solve this problem ?

By the way, I found a post that is quite exactly similar to mine, and to
which nobody had answered. If it can help you:
http://www.mail-archive.com/epf-dev@eclipse.org/msg01586.htm l

Thanks a lot

Quentin
Re: Problem using EMF and EPF library [message #49609 is a reply to message #49580] Wed, 23 April 2008 12:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: quentin.deme.st.com

I don't know why, but the last link is filled up with "xxxx", where there
should be "eclipse.org"
Re: Problem using EMF and EPF library [message #49638 is a reply to message #49580] Wed, 23 April 2008 12:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------050808010305070702050807
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Quentin,

This is like an EMF FAQ thing:

2.17 I get a PackageNotFoundException: e.g., "Package with uri
'http://com.example.company.ecore' not found." What do I need to do?
< http://wiki.eclipse.org/index.php/EMF-FAQ#I_get_a_PackageNot FoundException:_e.g..2C_.22Package_with_uri_.27http:.2F.2Fco m.example.company.ecore.27_not_found..22_What_do_I_need_to_d o.3F>

I take it you are running standalone? Have you found the package whose
eNS_URI value matches the URI in the exception?

The thing worries me. Generally you'll want to use an absolute URI

URI fileURI = URI.createFileURI("EPF4/export.xmi");

I.e.,

URI fileURI = URI.createFileURI(new
File("EPF4/export.xmi").getAbsolutePath());

This is especially important if the file can reference other files...

Probably a little bit of background reading will help:

The Eclipse Modeling Framework Overview
< http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. emf.doc//references/overview/EMF.html>


Quentin DEME wrote:
> I finally succeeded in having a result from my program. Now I
> unfortunately have another problem. I get the following error:
>
> Exception in thread "main"
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http:///org/eclipse/epf/uma/resourcemanager.ecore' not found.
> (file:///C:/myWorkspace/testprj/EPF4/export.xmi, 3, 118)
>
> The file I'm trying to read (export.xmi) is an EPF Composer output
> file. It's heading is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xmi:XMI epf:version="1.2.0" xmi:version="2.0"
> xmlns:epf="http://www.eclipse.org/epf"
> xmlns:org.eclipse.epf.uma="http://www.eclipse.org/epf/uma/1.0.4/uma.ecore"
> xmlns:org.eclipse.epf.uma.resourcemanager="http:///org/eclipse/epf/uma/resourcemanager.ecore"
> xmlns:xmi="http://www.omg.org/XMI">
> <org.eclipse.epf.uma.resourcemanager:ResourceManager
> guid="_mtb_FPL5Edm6Nvont3uinw" xmi:id="_mtb_FPL5Edm6Nvont3uinw">
>
> The current code is:
>
> public class TestEPFXMIParser {
>
> public TestEPFXMIParser() {
> // create a ResourceSet.
>
> ResourceSet resourceSet = new ResourceSetImpl();
>
> //org.eclipse.epf.library.LibraryService.getInstance().openM ethodLibrary(String,uri);
>
>
> // initialize ResourceSet
> final ExtendedMetaData extendedMetaData = new
> BasicExtendedMetaData(resourceSet.getPackageRegistry());
>
> resourceSet.getLoadOptions().put(XMLResource.OPTION_EXTENDED _META_DATA,
> extendedMetaData);
> resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI,
> UMLPackage.eINSTANCE);
> resourceSet.getPackageRegistry().put(NotationPackage.eNS_URI ,
> NotationPackage.eINSTANCE);
> resourceSet.getPackageRegistry().put(ModelPackage.eNS_URI,
> ModelPackage.eINSTANCE);
> resourceSet.getPackageRegistry().put(UmaPackage.eNS_URI,
> UmaPackage.eINSTANCE);
> System.out.println("URI = " + ModelPackage.eNS_URI);
> resourceSet.getPackageRegistry().put(EcorePackage.eNS_URI,
> EcorePackage.eINSTANCE);
>
> resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap().put( "xmi",
> new XMIResourceFactoryImpl());
> URI fileURI = URI.createFileURI("EPF4/export.xmi");
>
> Resource resource = resourceSet.getResource(fileURI, true);
> }
> }
>
> I don't really understand these "Package" notions, can you explain me
> the right way to use them and how to solve this problem ?
>
> By the way, I found a post that is quite exactly similar to mine, and
> to which nobody had answered. If it can help you:
> http://www.mail-archive.com/epf-dev@eclipse.org/msg01586.htm l
>
> Thanks a lot
>
> Quentin
>


--------------050808010305070702050807
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Quentin,<br>
<br>
This is like an EMF FAQ thing:<br>
<blockquote><a
href=" http://wiki.eclipse.org/index.php/EMF-FAQ#I_get_a_PackageNot FoundException:_e.g..2C_.22Package_with_uri_.27http:.2F.2Fco m.example.company.ecore.27_not_found..22_What_do_I_need_to_d o.3F"><span
class="tocnumber">2.17</span> <span class="toctext">I get a
PackageNotFoundException: e.g., "Package with uri
'http://com.example.company.ecore' not found." What do I need to do?</span></a><br>
</blockquote>
I take it you are running standalone?
Re: Problem using EMF and EPF library [message #49668 is a reply to message #49638] Wed, 23 April 2008 13:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: quentin.deme.st.com

I had already read this FAQ entry but it didn't help me so much.

I used the getAbsolutePath() instead of the relative one.

I wonder how I could find the missing package with uri
"http:///org/eclipse/epf/uma/resourcemanager.ecore"
However, is must be famous, since it's in a file generated with Eclipse
Process Framework Composer, right?

Thanks

Quentin
Re: Problem using EMF and EPF library [message #49698 is a reply to message #49668] Wed, 23 April 2008 14:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Quentin,

Maybe if you used Ctrl-Shift-T and typed in *Package it would show up in
the list. If you were running as an Eclipse application, it would just
be found because it's registered in the plugin.xml...


Quentin DEME wrote:
> I had already read this FAQ entry but it didn't help me so much.
>
> I used the getAbsolutePath() instead of the relative one.
>
> I wonder how I could find the missing package with uri
> "http:///org/eclipse/epf/uma/resourcemanager.ecore"
> However, is must be famous, since it's in a file generated with
> Eclipse Process Framework Composer, right?
>
> Thanks
>
> Quentin
>
Re: Problem using EMF and EPF library [message #49726 is a reply to message #49698] Thu, 24 April 2008 09:29 Go to previous message
Eclipse UserFriend
Originally posted by: quentin.deme.st.com

Hi,

I didn't know this "Open Type" dialog accessible with Ctrl+Shift+T, and it
was very useful because I found the missing package : it is
ResourcemanagerPackage.

I can now browse my EPF model with the little library I made.

Thank you very much

Quentin
Re: Problem using EMF and EPF library [message #588877 is a reply to message #49428] Wed, 23 April 2008 10:52 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Quentin,

Have you run it under debug control? Unless you run eclipse with
-consolelog, I don't think you'll see what's being printed to
System.out. An common newbie mistake when building plugins is to fiddle
directly with the project's properties to fix compilation problems only
to have those same problems come back at runtime. So be sure to edit
the MANIFEST.MF's dependencies to fix any compilation problems caused by
things missing from the classpath. (I doubt it will make a difference,
but Throwable is a more general thing to catch.)


Quentin DEME wrote:
> 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
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problem using EMF and EPF library [message #588896 is a reply to message #49520] Wed, 23 April 2008 12:25 Go to previous message
Eclipse UserFriend
Originally posted by: quentin.deme.st.com

I finally succeeded in having a result from my program. Now I
unfortunately have another problem. I get the following error:

Exception in thread "main"
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
'http:///org/eclipse/epf/uma/resourcemanager.ecore' not found.
(file:///C:/myWorkspace/testprj/EPF4/export.xmi, 3, 118)

The file I'm trying to read (export.xmi) is an EPF Composer output file.
It's heading is:

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI epf:version="1.2.0" xmi:version="2.0"
xmlns:epf="http://www.eclipse.org/epf"
xmlns:org.eclipse.epf.uma="http://www.eclipse.org/epf/uma/1.0.4/uma.ecore"
xmlns:org.eclipse.epf.uma.resourcemanager="http:///org/eclipse/epf/uma/resourcemanager.ecore"
xmlns:xmi="http://www.omg.org/XMI">
<org.eclipse.epf.uma.resourcemanager:ResourceManager
guid="_mtb_FPL5Edm6Nvont3uinw" xmi:id="_mtb_FPL5Edm6Nvont3uinw">

The current code is:

public class TestEPFXMIParser {

public TestEPFXMIParser() {
// create a ResourceSet.

ResourceSet resourceSet = new ResourceSetImpl();
//org.eclipse.epf.library.LibraryService.getInstance().openM ethodLibrary(String,uri);

// initialize ResourceSet
final ExtendedMetaData extendedMetaData = new
BasicExtendedMetaData(resourceSet.getPackageRegistry());
resourceSet.getLoadOptions().put(XMLResource.OPTION_EXTENDED _META_DATA,
extendedMetaData);
resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI,
UMLPackage.eINSTANCE);
resourceSet.getPackageRegistry().put(NotationPackage.eNS_URI ,
NotationPackage.eINSTANCE);
resourceSet.getPackageRegistry().put(ModelPackage.eNS_URI,
ModelPackage.eINSTANCE);
resourceSet.getPackageRegistry().put(UmaPackage.eNS_URI,
UmaPackage.eINSTANCE);
System.out.println("URI = " + ModelPackage.eNS_URI);
resourceSet.getPackageRegistry().put(EcorePackage.eNS_URI,
EcorePackage.eINSTANCE);
resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap().put( "xmi",
new XMIResourceFactoryImpl());
URI fileURI = URI.createFileURI("EPF4/export.xmi");

Resource resource = resourceSet.getResource(fileURI, true);
}
}

I don't really understand these "Package" notions, can you explain me the
right way to use them and how to solve this problem ?

By the way, I found a post that is quite exactly similar to mine, and to
which nobody had answered. If it can help you:
http://www.mail-archive.com/epf-dev@eclipse.org/msg01586.htm l

Thanks a lot

Quentin
Re: Problem using EMF and EPF library [message #588907 is a reply to message #49580] Wed, 23 April 2008 12:28 Go to previous message
Eclipse UserFriend
Originally posted by: quentin.deme.st.com

I don't know why, but the last link is filled up with "xxxx", where there
should be "eclipse.org"
Re: Problem using EMF and EPF library [message #588921 is a reply to message #49580] Wed, 23 April 2008 12:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050808010305070702050807
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Quentin,

This is like an EMF FAQ thing:

2.17 I get a PackageNotFoundException: e.g., "Package with uri
'http://com.example.company.ecore' not found." What do I need to do?
< http://wiki.eclipse.org/index.php/EMF-FAQ#I_get_a_PackageNot FoundException:_e.g..2C_.22Package_with_uri_.27http:.2F.2Fco m.example.company.ecore.27_not_found..22_What_do_I_need_to_d o.3F>

I take it you are running standalone? Have you found the package whose
eNS_URI value matches the URI in the exception?

The thing worries me. Generally you'll want to use an absolute URI

URI fileURI = URI.createFileURI("EPF4/export.xmi");

I.e.,

URI fileURI = URI.createFileURI(new
File("EPF4/export.xmi").getAbsolutePath());

This is especially important if the file can reference other files...

Probably a little bit of background reading will help:

The Eclipse Modeling Framework Overview
< http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. emf.doc//references/overview/EMF.html>


Quentin DEME wrote:
> I finally succeeded in having a result from my program. Now I
> unfortunately have another problem. I get the following error:
>
> Exception in thread "main"
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
> org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'http:///org/eclipse/epf/uma/resourcemanager.ecore' not found.
> (file:///C:/myWorkspace/testprj/EPF4/export.xmi, 3, 118)
>
> The file I'm trying to read (export.xmi) is an EPF Composer output
> file. It's heading is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xmi:XMI epf:version="1.2.0" xmi:version="2.0"
> xmlns:epf="http://www.eclipse.org/epf"
> xmlns:org.eclipse.epf.uma="http://www.eclipse.org/epf/uma/1.0.4/uma.ecore"
> xmlns:org.eclipse.epf.uma.resourcemanager="http:///org/eclipse/epf/uma/resourcemanager.ecore"
> xmlns:xmi="http://www.omg.org/XMI">
> <org.eclipse.epf.uma.resourcemanager:ResourceManager
> guid="_mtb_FPL5Edm6Nvont3uinw" xmi:id="_mtb_FPL5Edm6Nvont3uinw">
>
> The current code is:
>
> public class TestEPFXMIParser {
>
> public TestEPFXMIParser() {
> // create a ResourceSet.
>
> ResourceSet resourceSet = new ResourceSetImpl();
>
> //org.eclipse.epf.library.LibraryService.getInstance().openM ethodLibrary(String,uri);
>
>
> // initialize ResourceSet
> final ExtendedMetaData extendedMetaData = new
> BasicExtendedMetaData(resourceSet.getPackageRegistry());
>
> resourceSet.getLoadOptions().put(XMLResource.OPTION_EXTENDED _META_DATA,
> extendedMetaData);
> resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI,
> UMLPackage.eINSTANCE);
> resourceSet.getPackageRegistry().put(NotationPackage.eNS_URI ,
> NotationPackage.eINSTANCE);
> resourceSet.getPackageRegistry().put(ModelPackage.eNS_URI,
> ModelPackage.eINSTANCE);
> resourceSet.getPackageRegistry().put(UmaPackage.eNS_URI,
> UmaPackage.eINSTANCE);
> System.out.println("URI = " + ModelPackage.eNS_URI);
> resourceSet.getPackageRegistry().put(EcorePackage.eNS_URI,
> EcorePackage.eINSTANCE);
>
> resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap().put( "xmi",
> new XMIResourceFactoryImpl());
> URI fileURI = URI.createFileURI("EPF4/export.xmi");
>
> Resource resource = resourceSet.getResource(fileURI, true);
> }
> }
>
> I don't really understand these "Package" notions, can you explain me
> the right way to use them and how to solve this problem ?
>
> By the way, I found a post that is quite exactly similar to mine, and
> to which nobody had answered. If it can help you:
> http://www.mail-archive.com/epf-dev@eclipse.org/msg01586.htm l
>
> Thanks a lot
>
> Quentin
>


--------------050808010305070702050807
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Quentin,<br>
<br>
This is like an EMF FAQ thing:<br>
<blockquote><a
href=" http://wiki.eclipse.org/index.php/EMF-FAQ#I_get_a_PackageNot FoundException:_e.g..2C_.22Package_with_uri_.27http:.2F.2Fco m.example.company.ecore.27_not_found..22_What_do_I_need_to_d o.3F"><span
class="tocnumber">2.17</span> <span class="toctext">I get a
PackageNotFoundException: e.g., "Package with uri
'http://com.example.company.ecore' not found." What do I need to do?</span></a><br>
</blockquote>
I take it you are running standalone?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problem using EMF and EPF library [message #588941 is a reply to message #49638] Wed, 23 April 2008 13:13 Go to previous message
Eclipse UserFriend
Originally posted by: quentin.deme.st.com

I had already read this FAQ entry but it didn't help me so much.

I used the getAbsolutePath() instead of the relative one.

I wonder how I could find the missing package with uri
"http:///org/eclipse/epf/uma/resourcemanager.ecore"
However, is must be famous, since it's in a file generated with Eclipse
Process Framework Composer, right?

Thanks

Quentin
Re: Problem using EMF and EPF library [message #588955 is a reply to message #49668] Wed, 23 April 2008 14:54 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Quentin,

Maybe if you used Ctrl-Shift-T and typed in *Package it would show up in
the list. If you were running as an Eclipse application, it would just
be found because it's registered in the plugin.xml...


Quentin DEME wrote:
> I had already read this FAQ entry but it didn't help me so much.
>
> I used the getAbsolutePath() instead of the relative one.
>
> I wonder how I could find the missing package with uri
> "http:///org/eclipse/epf/uma/resourcemanager.ecore"
> However, is must be famous, since it's in a file generated with
> Eclipse Process Framework Composer, right?
>
> Thanks
>
> Quentin
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problem using EMF and EPF library [message #588976 is a reply to message #49698] Thu, 24 April 2008 09:29 Go to previous message
Eclipse UserFriend
Originally posted by: quentin.deme.st.com

Hi,

I didn't know this "Open Type" dialog accessible with Ctrl+Shift+T, and it
was very useful because I found the missing package : it is
ResourcemanagerPackage.

I can now browse my EPF model with the little library I made.

Thank you very much

Quentin
Previous Topic:ActivityDiagramImpl
Next Topic:epfc to cvs via ssh2
Goto Forum:
  


Current Time: Thu Mar 28 23:03:12 GMT 2024

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

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

Back to the top