blob: 8e39dd6a3d34a1c1125f2234468383ac7bb39227 [file] [log] [blame]
/**
* <copyright>
*
* Copyright (c) 2010 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: GeneratePivotVisitors.mwe2,v 1.2 2011/01/24 20:54:27 ewillink Exp $
*
* Run As->MWE2 Workflow to regenerate the pivot model.
*/
module GeneratePivotVisitors
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 Visitors to suit Pivot.ecore.
*/
Workflow {
bean = ResourceSetImpl : resourceSet {}
bean = StandaloneSetup { resourceSet = resourceSet
platformUri = ".."
}
component = PivotVisitorCodeGenerator { resourceSet = resourceSet
ecoreFile = "/${projectName}/model/Pivot.ecore"
javaFolder = "/${projectName}/emf-gen"
javaPackageName = "${projectName}"
javaClassName = "Visitor"
}
}