The following code provides me with the following error,
"Package with uri htt..//schema.omg.org/spec/UML/2.1.1 not found.".
I was hoping someone could possibly explain to me what is happening. Within
the contents of the project.xmi file it contains that uri and this file was
exported from Rhapsody. This .xmi file is a model diagram. I found out that
EMF allows an interpretation of this model as a UML and in turn I was hoping I
could traverse that UML interpretation rather than the .xmi text. My ultimate
goal is to recreate that Rhapsody model in Eclipse.
Here is the beginning of the stack trace:
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Package with uri htt..//schema.omg.org/spec/UML/2.1.1 not found. (file:/C:/project.xmi, 3, 80)
(the htt..// is a weblink)
String pathToXMI = "C:\\project.xmi";
File XMIFile = new File(pathToXMI);
URI coreXMI = URI.createFileURI(pathToXMI);