blob: f47d61487b6e4f073d5e44770ef7657a0e88ce9e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010, 2015 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
* Adolfo Sanchez-Barbudo Herrera (University of York) - bug397429"
*
* Run As->MWE2 Workflow to regenerate the Auto AS models.
*******************************************************************************/
module GenerateAutoCSModels
import org.eclipse.ocl.examples.build.*
import org.eclipse.ocl.examples.build.utilities.*
import org.eclipse.ocl.examples.build.xtend.*
import org.eclipse.emf.mwe.utils.*
import org.eclipse.emf.mwe.utils.*
import org.eclipse.emf.ecore.resource.impl.*
/**
* Generate the Extension to the Abstract Syntax Models used by the Xtext editors.
*/
Workflow {
bean = ResourceSetImpl : resourceSet {}
bean = StandaloneSetup { resourceSet = resourceSet
platformUri = ".."
scanClassPath = true
}
bean = EcoreGenModelSetup { resourceSet = resourceSet }
component = @SubGenerateAutoASModel { resourceSet = resourceSet
projectName = "org.eclipse.ocl.pivot"
genModelFile = "model/Pivot.genmodel"
lookupFilePath = "model/PivotLookup.ocl"
lookupPackageName = "org.eclipse.ocl.pivot.internal.lookup"
}
}