|Resolving package URI from workspace plugin with E4 model editor [message #1793829]
||Thu, 16 August 2018 16:07
| Elias Vasylenko
Registered: December 2015
I have an emf model which extends the E4 application model with a couple of new MUIElements. If I add the project containing the model to my target platform and launch a new Eclipse instance it works fine, and I can reference the new element from an .e4xmi editor in the new instance.|
(There is no editor registered for it yet, it just shows the default (unknown model element) but this is fine, I'm happy to edit the XMI directly for now.)
So I can resolve the model extensions if the plugin is contained in the *running instance*, but this isn't very useful for me. I want to be able to resolve them when the plugin is in the *current workspace*.
Looking at the few discussions & examples I can find around the internet it seems that it should be possible, but I can't get it to work. I'm getting the following exception:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://www.saiman.co.uk/eclipse/2018/UISaiman/ui' not found. (platform:/resource/uk.co.saiman.msapex/Application.e4xmi, 44, 112)
I wasn't sure if it would be best to post this under EMF or E4, apologies if this is the wrong place.
Edit: it may be important that I'm using Bndtools not e.g. Tycho to build the project. I copied the manifest to META-INF/MANIFEST.MF in the project directory and this seemed sufficient for Eclipse to recognise it as a plugin project, and again this allows it to be resolved into the target platform and run in a new instance just fine. How does Eclipse resolve emf models from the workspace?
[Updated on: Thu, 16 August 2018 16:11]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02258 seconds