I suggest you to try using URIEditorInput for all the models. In this case
you can even handle EMF resources creation by your own factory (load data
from any other sources but the XMI files).
BTW, in case you are creating diagram/model files I suggest you using EMF-generated
API for domain model and Notation Model API for diagram one - this will simplify
diagram structure creation.