Code generator fails unexpectedly

8 views
Skip to first unread message

Simone Di Cola

unread,
Jul 10, 2014, 10:28:51 AM7/10/14
to spray...@googlegroups.com
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



Simone Di Cola

unread,
Jul 10, 2014, 11:49:03 AM7/10/14
to spray...@googlegroups.com
Is there any way to spot why a building fails? 

Simone Di Cola

unread,
Jul 10, 2014, 12:26:46 PM7/10/14
to spray...@googlegroups.com
I've fixed the problem :) 


On Thursday, July 10, 2014 3:28:51 PM UTC+1, Simone Di Cola wrote:
Reply all
Reply to author
Forward
0 new messages