Search in sources :

Example 1 with MelangeResourceFactoryImpl

use of fr.inria.diverse.melange.resource.MelangeResourceFactoryImpl in project gemoc-studio by eclipse.

the class StandaloneSetup method doEMFRegistration.

public void doEMFRegistration() {
    EPackage.Registry.INSTANCE.put(org.eclipse.gemoc.sample.legacyfsm.xsfsm.xsfsm.fsm.FsmPackage.eNS_URI, org.eclipse.gemoc.sample.legacyfsm.xsfsm.xsfsm.fsm.FsmPackage.eINSTANCE);
    Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("*", new XMIResourceFactoryImpl());
    Resource.Factory.Registry.INSTANCE.getProtocolToFactoryMap().put("melange", new MelangeResourceFactoryImpl());
}
Also used : MelangeResourceFactoryImpl(fr.inria.diverse.melange.resource.MelangeResourceFactoryImpl) XMIResourceFactoryImpl(org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl)

Example 2 with MelangeResourceFactoryImpl

use of fr.inria.diverse.melange.resource.MelangeResourceFactoryImpl in project gemoc-studio by eclipse.

the class StandaloneSetup method doEMFRegistration.

public void doEMFRegistration() {
    EPackage.Registry.INSTANCE.put(org.eclipse.gemoc.sample.legacyfsm.fsm.FsmPackage.eNS_URI, org.eclipse.gemoc.sample.legacyfsm.fsm.FsmPackage.eINSTANCE);
    Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("*", new XMIResourceFactoryImpl());
    Resource.Factory.Registry.INSTANCE.getProtocolToFactoryMap().put("melange", new MelangeResourceFactoryImpl());
}
Also used : MelangeResourceFactoryImpl(fr.inria.diverse.melange.resource.MelangeResourceFactoryImpl) XMIResourceFactoryImpl(org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl)

Aggregations

MelangeResourceFactoryImpl (fr.inria.diverse.melange.resource.MelangeResourceFactoryImpl)2 XMIResourceFactoryImpl (org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl)2