| [news.eclipse.technology.epf] Re: Getting RoleSets from XMI files |
Quentin,
Comments below.
Well, this isn't a good URI. You should be using URI.createFileURI given this path to create a proper URI for it. With the above path, relative references won't work correctly. In fact, I suspect you really should be using a platform resource URI, i.e., platform:/resource/com.st.library/EPF6/PMM_plugin/deliveryprocesses/PMM_lifecycle/model.xmi (which you'd created from an IFile using URI.createPlatformResourceURI(ifile.getFullPath().toString()).Ed, I have splitted the message in two problems:
--------------- Unresolved proxy (Obtaining the names of the guidelines)
The path is "C:/myWorkspace/com.st.library/EPF6/PMM_plugin/deliveryprocesses/PMM_lifecycle/model.xmi"
Not sure how you got the two, but a proxy has a URI just like this. I would expect there to be a resource in the resource set with URI "uma://_wTuT0MmrEdyxNoaGNtevxw". Is there such a resource in the resource set?This xmi file contains uma references inside.
I've understood what you wanted me to do about eProxyURI() of the InternalEOBject. Here is a debug output I made, from inside the loop:
- Phase : Project Specification and Project Definition
- Guideline : org.eclipse.epf.uma.impl.GuidelineImpl
- getPresentationName() : - getName() : - eIsProxy() : true
- getGuid() : _ou7UEha3Ed22s7Cm8XbSQw
- eProxyURI() : uma://_wTuT0MmrEdyxNoaGNtevxw#_GgH6wOn8EdyMKb-pMuCr4g
- eProxyURI of InternalEObject: uma://_wTuT0MmrEdyxNoaGNtevxw#_GgH6wOn8EdyMKb-pMuCr4g
The two proxyURI seem to be the same... what does this mean?
EMF is already in a jar file. You should just create a dependency on the org.eclipse.emf.ecore plugin. When we generate your model, it should already be set up this way...
--------------- Library into plugin (Using the library from the Eclise plugin)
I've created a test plugin which only contains System.out.println stuff. I have exported it to a .jar file. In my plugin, I did "Runtime" -> "Classpath" -> "Add", and I added this .jar file.
And it worked fine!
Then, I tried to so the same with my library. I have exported it to a .jar file and added it to my plugin's classpath.
--> Now, I don't get "NoClassDefFoundError: com/st/library/STXMIParser", but I get this : "NoClassDefFoundError: org/eclipse/emf/ecore/resource/resourceSet" (and it's my library that uses emf)
I even tried to export emf.ecore to a .jar file and to add it to the plugin's classpath, but it doesn't solve anything.
---------------
Thank you,
Quentin