Closed GoogleCodeExporter closed 8 years ago
This is currently possible using:
class BusinessClass alias FullClass {
container ( fill=dark_green )
{
text ( ) { "<<"+eClass.name+">> " + name};
}
references {
superclass : connection( )
}
behavior {
create into types palette "Shapes" askFor name ;
}
The superclass is just an EReference in the domain model. I think it makes
sense to define this inside the meta class in which the reference is defined,
as is done here.
Original comment by joswar...@gmail.com
on 3 Nov 2012 at 6:22
with new syntax:
class EClass {
...
references {
eSuperTypes : connection ReferenceConnection
{
name into name
}
}
...
}
(ReferenceConnection is defined in shape DSL)
Origin in the class itself and the target is restricted by the type of the
ERreference.
Please note the existing issue with bidirectional references:
http://code.google.com/a/eclipselabs.org/p/spray/issues/detail?id=270
Original comment by de.abg.r...@gmail.com
on 14 Jul 2013 at 1:21
Original issue reported on code.google.com by
de.abg.r...@gmail.com
on 2 Sep 2012 at 11:34