Hi Joerg,
I have a strange behavior.
This is the xcore model:
class ServiceRef {
String origin
container Service referredService opposite serviceReferences
}
class Service{
String name
String comment
contains Parameter[1..*] parameters opposite service
contains Contract[0..*] contracts
contains ServiceRef[0..*] serviceReferences opposite referredService
}
This is the shape file:
shape ServiceShape {
proportional=true
stretching (horizontal=false, vertical=true)
rectangle style Service {
compartment (
layout = fixed
id = serviceCompartment
)
style (line-width=3)
size (width=210, height=80)
text {
style (font-size=10 background-color=white font-color=black font-bold=yes)
position (x=3, y=3)
size (width=194, height=10)
align (horizontal=center, vertical=middle)
id = serviceNameLabel
}
line {
point (x=1, y=28)
point (x=209, y=28)
}
}
}
This is the spary file:
class Service icon "shared/service.gif" {
shape ServiceShape {
name into serviceNameLabel
reference parameters into serviceCompartment
reference serviceReferences into serviceCompartment
}
behavior {
create into services palette "Services"
}
}
class ServiceRef {
shape ServiceReferenceShape{
origin into serviceRefLabel
}
behavior{
create palette "CIAO"
}
}
When I build the project, the compilation fails. I really do not see where is the problem here.
Any idea?
Simone