blob: ce260235cd22c1cae5a403ac3236060e12e59e08 [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* 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
*
* Contributors:
* Florian Pirchner - Initial implementation
*/
package org.eclipse.osbp.xtext.oxtype.hooks;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.xtext.generator.IFileSystemAccess;
import org.eclipse.xtext.xbase.compiler.JvmModelGenerator;
import com.google.inject.Inject;
/**
* Delegates generator calls to extensions.
*/
@SuppressWarnings("restriction")
public class DelegatingGenerator extends JvmModelGenerator {
private @Inject ExtensionsGeneratorDelegate generatorDelegate;
public void doGenerate(Resource input, IFileSystemAccess fsa) {
super.doGenerate(input, fsa);
generatorDelegate.generate(input, fsa);
}
}