blob: bc4f86756b51d963d1ea8228dc4bb313250847f8 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014 Willink Transformations and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* E.D.Willink - initial API and implementation
*
* Run As->MWE2 Workflow to regenerate the pivot model.
*******************************************************************************/
module GenerateLaTeXForLibrary
import org.eclipse.ocl.examples.build.latex.*
import org.eclipse.ocl.examples.build.utilities.*
import org.eclipse.emf.mwe.utils.*
import org.eclipse.emf.mwe.utils.*
import org.eclipse.emf.ecore.resource.impl.*
var sourceName
var targetName = "org.eclipse.ocl.examples.build"
var modelFile
var latexFileName
/**
* Generate the LaTeX documentation for the OCLstdlib Model, by converting oclstdlib.oclstdlib to ocl-standard-library.tex.
*/
Workflow {
bean = ResourceSetImpl : resourceSet {}
bean = StandaloneSetup { resourceSet = resourceSet
platformUri = ".."
}
bean = GenModelSetup { resourceSet = resourceSet }
component = GenerateLaTeXForLibraryXtend { resourceSet = resourceSet
projectName = "${sourceName}"
modelFile = "${modelFile}"
latexFolder = "/${targetName}/latex-gen"
latexFileName = "${latexFileName}"
}
}