... | ... | @@ -37,8 +37,7 @@ public class MyGenerator { |
|
|
@Inject
|
|
|
private JavaIoFileSystemAccess fileAccess;
|
|
|
|
|
|
public static void execute(String path) {
|
|
|
final Injector injector = new MyDslStandaloneSetup().createInjectorAndDoEMFRegistration();
|
|
|
public static void execute(String path, Injector injector) {
|
|
|
final MyGenerator main = injector.getInstance(MyGenerator.class);
|
|
|
main.runGenerator(path);
|
|
|
|
... | ... | @@ -135,5 +134,4 @@ public class Application implements IApplication { |
|
|
|
|
|
6. Add following imported packages:
|
|
|
- com.google.inject,
|
|
|
- org.eclipse.emf.ecore.resource,
|
|
|
- org.eclipse.xtext.validation |
|
|
\ No newline at end of file |
|
|
|