blob: 38cd1cb12f4c7647a2e1a508575c687b125b8aa4 [file] [log] [blame]
/**
* Copyright (c) 2011, 2016 - 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 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
*
* This copyright notice shows up in the generated Java code
*/
package org.eclipse.osbp.xtext.i18n;
import java.util.Set;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.osbp.xtext.i18n.DSLOutputConfigurationProvider;
import org.eclipse.osbp.xtext.i18n.I18NModelGenerator;
import org.eclipse.osbp.xtext.oxtype.hooks.IGeneratorDelegate;
import org.eclipse.xtext.generator.IFileSystemAccess;
import org.eclipse.xtext.generator.OutputConfiguration;
@SuppressWarnings("all")
public class GeneratorDelegate extends I18NModelGenerator implements IGeneratorDelegate {
private DSLOutputConfigurationProvider configProvider = new DSLOutputConfigurationProvider();
@Override
public void generate(final Resource input, final IFileSystemAccess fsa) {
this.generateI18n(fsa, input);
}
@Override
public Set<OutputConfiguration> getOutputConfigurations() {
return this.configProvider.getOutputConfigurations();
}
}