-
Notifications
You must be signed in to change notification settings - Fork 4
/
EPackage.gvmap
29 lines (28 loc) · 872 Bytes
/
EPackage.gvmap
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
import org.eclipse.emf.ecore.EPackage
import org.eclipse.emf.ecore.EClass
import org.eclipse.emf.ecore.EDataType
diagram EPackageDiagram type EPackage {
node EClassNode for each EClassifiers.filter(typeof (EClass)) {
label Name for this
node Attributes for EAttributes {
label Label for each this
} unless EAttributes.empty
node Operations for EOperations {
label Label for each this
} unless EOperations.empty
edge ReferenceEdge for each EReferences {
=> ref EClassNode for EType
label EdgeLabel for name
} //unless true
edge SuperclassEdge for each ESuperTypes {
=> ref EClassNode for this
}
}
node EDataTypeNode for each this.EClassifiers.filter(typeof (EDataType)) {
label Name for name
} unless true
node InnerPackage for each ESubpackages {
label PackageLabel for this
call EPackageDiagram for this
}
}