xtextemf

how to fix IResourceServiceProvider.Registry.INSTANCE.getResourceServiceProvider(URI.createFileURI("dummy.aadl")) returning null value


I am using AADL which is domain specific language created using Xtext and EMF. I am trying to use function IResourceServiceProvider.Registry.INSTANCE.getResourceServiceProvider(URI.createFileURI("dummy.aadl")) but it returns null. how can I fix it?


Solution

  • It looks like you did never called the doSetup method of the AADLStandalibeSetup (or however your language impl is called). It is used to register your language if you do not run in an OSGi equinox environment.