Skip to content

Commit

Permalink
Add register to the StandaloneSetup for the grammars
Browse files Browse the repository at this point in the history
  • Loading branch information
ipa-nhg committed Aug 1, 2024
1 parent 6dff961 commit 8973aa9
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
*/
package de.fraunhofer.ipa.ros

import com.google.inject.Injector
import org.eclipse.emf.ecore.EPackage
import ros.RosPackage

/**
* Initialization support for running Xtext languages without Equinox extension registry.
Expand All @@ -12,4 +15,9 @@ class RosStandaloneSetup extends RosStandaloneSetupGenerated {
def static void doSetup() {
new RosStandaloneSetup().createInjectorAndDoEMFRegistration()
}

override register(Injector injector) {
EPackage.Registry.INSTANCE.put(RosPackage.eNS_URI, RosPackage.eINSTANCE)
super.register(injector)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
*/
package de.fraunhofer.ipa.ros1

import com.google.inject.Injector
import org.eclipse.emf.ecore.EPackage
import ros.RosPackage

/**
* Initialization support for running Xtext languages without Equinox extension registry.
Expand All @@ -12,4 +15,9 @@ class Ros1StandaloneSetup extends Ros1StandaloneSetupGenerated {
def static void doSetup() {
new Ros1StandaloneSetup().createInjectorAndDoEMFRegistration()
}

override register(Injector injector) {
EPackage.Registry.INSTANCE.put(RosPackage.eNS_URI, RosPackage.eINSTANCE)
super.register(injector)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
*/
package de.fraunhofer.ipa.ros2

import com.google.inject.Injector
import org.eclipse.emf.ecore.EPackage
import ros.RosPackage

/**
* Initialization support for running Xtext languages without Equinox extension registry.
Expand All @@ -12,4 +15,9 @@ class Ros2StandaloneSetup extends Ros2StandaloneSetupGenerated {
def static void doSetup() {
new Ros2StandaloneSetup().createInjectorAndDoEMFRegistration()
}

override register(Injector injector) {
EPackage.Registry.INSTANCE.put(RosPackage.eNS_URI, RosPackage.eINSTANCE)
super.register(injector)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
*/
package de.fraunhofer.ipa.rossystem

import com.google.inject.Injector
import org.eclipse.emf.ecore.EPackage
import system.RossystemPackage

/**
* Initialization support for running Xtext languages without Equinox extension registry.
Expand All @@ -12,4 +15,10 @@ class RosSystemStandaloneSetup extends RosSystemStandaloneSetupGenerated {
def static void doSetup() {
new RosSystemStandaloneSetup().createInjectorAndDoEMFRegistration()
}


override register(Injector injector) {
EPackage.Registry.INSTANCE.put(RossystemPackage.eNS_URI, RossystemPackage.eINSTANCE)
super.register(injector)
}
}

0 comments on commit 8973aa9

Please sign in to comment.