eclipseeclipse-emfemfeclipse-emf-ecore

Getting nsuri in Eclipse


I have Tree.ecore as source Metamodel. I need to write something like this:

model Tree driver EMF {nsuri="http://www.eclipse.org/emf/2002/Tree"};

How can I get exact nsuri of my registered ecore in eclipse?


Solution

  • If you are using @namespace(uri="Tree", prefix="Tree") in your Emfatic metamodel, then the nsuri you're looking for is Tree (nsuri stands for "namespace URI")