blob: a3762cca1db4a0566eb1519e6e9989b9902e44f1 [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 org.eclipse.emf.ecore.resource.Resource
import org.eclipse.xtext.generator.IFileSystemAccess
import org.eclipse.osbp.dsl.xtext.lazyresolver.api.hook.IGeneratorDelegate
class GeneratorDelegate extends I18NModelGenerator implements IGeneratorDelegate {
DSLOutputConfigurationProvider configProvider = new DSLOutputConfigurationProvider()
override generate(Resource input, IFileSystemAccess fsa) {
super.addTranslatables("Name,Priority,Status,Subject,Description,ExpirationTime,CreatedOn,CreatedBy,ActivationTime,ActualOwner,TaskId,ProcessId,ProcessInstanceId,ProcessSessionId")
fsa.generateI18n(input)
}
override getOutputConfigurations() {
return configProvider.getOutputConfigurations();
}
}