I am trying to programmatically load an e4 application model in order to be able to iterate on the model elements. Currently I am facing the problem, that I don't know on how to correctly load it.
Given an Application.e4xmi
I tried to simply load the file using simple load an existing model which however did not result in a populated Resource (null).
Then I found out about org.eclipse.e4.tools.emf.ui.common.XMIModelResource
, I am however not able to instantiate the model using the following code
URI uriNew = URI.createURI("file:///Users/marco/github-clones/osara/at.osara.rcp/Application.e4xmi");
XMIModelResource xmimr = new XMIModelResource(uriNew);
as I get Package with uri 'http://www.eclipse.org/ui/2010/UIModel/application' not found.
This ecore however is located in the already imported org.eclipse.e4.ui.model.workbench
Anybody got a hint on this? Thanks!