| /** |
| * <copyright> |
| * |
| * Copyright (c) 2010,2011 E.D.Willink and others. |
| * 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: |
| * E.D.Willink - initial API and implementation |
| * |
| * </copyright> |
| * |
| * $Id$ |
| * |
| * Run As->MWE2 Workflow to regenerate the pivot model. |
| */ |
| module GeneratePivotTables |
| |
| 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 projectName = "org.eclipse.ocl.examples.pivot" |
| |
| /** |
| * Generate the Pivot Model, by performing the merge to create the flattened package |
| * with additional MDT/OCL content, alphabeticsing the classes, reloading the genmodel |
| * and finally generating the model code. |
| */ |
| Workflow { |
| bean = ResourceSetImpl : resourceSet {} |
| bean = ProjectMapSetup { resourceSet = resourceSet } |
| bean = UMLStandaloneSetup {} |
| bean = UMLGenModelSetup { resourceSet = resourceSet } |
| component = Model2tablesGenerator { resourceSet = resourceSet |
| genModelFile = "/${projectName}/model/Pivot.merged.genmodel" |
| } |
| } |
| |