| /******************************************************************************* |
| * Copyright (c) 2013 RCP Vision (http://www.rcp-vision.com) and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| *******************************************************************************/ |
| package org.eclipse.emf.parsley.dsl.generator |
| |
| import com.google.inject.Inject |
| import org.eclipse.emf.ecore.resource.Resource |
| import org.eclipse.xtext.generator.IFileSystemAccess |
| import org.eclipse.xtext.generator.IGenerator |
| import org.eclipse.xtext.xbase.compiler.JvmModelGenerator |
| |
| /** |
| * This generator calls the standard JvmModelGenerator and |
| * the generator for plugin.xml_gen |
| */ |
| class EmfParsleyDslGenerator implements IGenerator { |
| |
| @Inject JvmModelGenerator jvmModelGenerator |
| |
| @Inject EmfParsleyDslPluginXmlGenerator pluginXmlGenerator |
| |
| override doGenerate(Resource input, IFileSystemAccess fsa) { |
| jvmModelGenerator.doGenerate(input, fsa); |
| pluginXmlGenerator.doGenerate(input, fsa); |
| } |
| |
| } |