Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: cca3ed16fe309cf81fb56db2faa7d8bc956105e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import xpt.GlobalVarOperations;

modeltype genModel uses "http://www.eclipse.org/emf/2002/GenModel";
modeltype genModel_1 uses "http://www.eclipse.org/gmf/2008/GenModel";

library Facility;

helper getNameToken(gp : genModel::GenPackage) : String {
	return gp.prefix
}

helper fieldName(gp : genModel::GenPackage) : String {
	return 'instance' + getNameToken(gp)
}

helper getDMA() : genModel_1::DynamicModelAccess {
	return xpandGetObjectGlobalVar('DynamicModelAccess').oclAsType(genModel_1::DynamicModelAccess)
}

Back to the top