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