blob: 34a1312652fd7e533a64f92b960a26693e2ec771 [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 v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* 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.dsl.xtext.lazyresolver.api.hook.IGeneratorDelegate;
import org.eclipse.osbp.xtext.i18n.DSLOutputConfigurationProvider;
import org.eclipse.osbp.xtext.i18n.I18NModelGenerator;
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();
public void generate(final Resource input, final IFileSystemAccess fsa) {
super.addTranslatables("Name,Priority,Status,Subject,Description,ExpirationTime,CreatedOn,CreatedBy,ActivationTime,ActualOwner,TaskId,ProcessId,ProcessInstanceId,ProcessSessionId");
this.generateI18n(fsa, input);
}
public Set<OutputConfiguration> getOutputConfigurations() {
return this.configProvider.getOutputConfigurations();
}
}