Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: fe2c01a7b23bd5766eafbbf4d83b366ac82a1d05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*******************************************************************************
 * 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 GenerateLaTeXForASModel

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 = GenerateLaTeXForASModelXtend { resourceSet = resourceSet
    	projectName = "${sourceName}"
    	modelFile = "${modelFile}"
    	latexFolder = "/${targetName}/latex-gen"
    	latexFileName = "${latexFileName}"
    }
}

Back to the top