Solved: Package with uri 'http://xyz.de/1.0' not found [message #777060] |
Mon, 09 January 2012 13:54  |
Eclipse User |
|
|
|
Hey together,
I have yet a very simple model. Process, Connector and Flow.
When I create a Diagram and add e.g. one element to the diagram and save it, it will reopen nicely if I don't restart the whole RCP application.
But when I restart the whole application and try to open a diagram with more than zero elements I'll get a Package not found exception:
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://foo.de/1.0' not found.
And a Null Pointer Exception at org.eclipse.graphiti.ui.internal.editor.DiagramEditorInternal.dispose(DiagramEditorInternal.java:552)
I created the EMF model and the corresponding code within eclipse via a diagram editor and created the code with the help of the automatically created ".genmodel".
Does anyone have any suggestions? If yes, please keep in mind that I am still quite lost in the giant world of EMF, GEF, Graphiti, Eclipse RCP (even after 6 months of sporadically programming this graphiti tool and quite good knowledge in java programming)
Thanks for your help!
Best Bjoern
[Updated on: Tue, 10 January 2012 09:39] by Moderator
|
|
|
|
|
Re: Package with uri 'http://xyz.de/1.0' not found [message #1021655 is a reply to message #777450] |
Wed, 20 March 2013 09:13  |
Eclipse User |
|
|
|
I had the same problem when developing an Eclipse Plugin.
I resolved adding an extension to my plugin.xml file:
<extension point="org.eclipse.emf.ecore.generated_package">
<package uri="NS Uri of Ecore model"
class="uri.NameOfModelPackage"
genModel="genmodel path"/>
</extension>
An example could be:
<extension point="org.eclipse.emf.ecore.generated_package">
<package uri="http://eclipse.org/graphiti/mm/examples/library"
class="org.eclipse.graphiti.examples.library.LibraryPackage"
genModel="model/Library.genmodel"/>
</extension>
|
|
|
Powered by
FUDForum. Page generated in 0.05758 seconds